Do it for the consensus-critical functions:
- CheckBlockHeader
- CheckBlock
- ContextualCheckBlockHeader
Part of #7829. Competing with #7985 and #7947.
Rationale: if these functions are to be moved to the consensus module/package, they need to stop depending on chainparams.o and timedata.o from the server package. Somewhat analogous to #7459.