This is a step toward removing the Chain::Lock class and reducing cs_main
locking.
This change has no effect on behavior.
This is part [8/12] of Core PR17954 : https://github.com/bitcoin/bitcoin/pull/17954/commits/3cb85ac594f115db99f96b0a0f4bfdcd69ef0590
Depends on D7870