This was the last use of global chainstate in the unit tests, except for the actual test fixture setup code itself (which will be removed in the two final commits of [[https://github.com/bitcoin/bitcoin/pull/21866 | core#21866]] that remain to be backported).
Depends on D11739