headerfs: extract chainTipWithTx
headerfs: extract chainTipWithTx

We want to isolate the code that reads from/writes to the index bucket
within the headerIndex type. We prepare to do so by extracting re-usable
code into methods.

lightninglabs/neutrino