This removes calls to the global chainstate in Bitcoin ABC specific code that was missed by previous core backports.
Also fix a few linting/autoformatting errors that were somehow introduced and not picked up by `arc lint` in D11686
Depends on D11737