PR title: Prune g_chainman usage in mempool-related validation functions (tree-wide: De-globalize ChainstateManager)
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/20750 | core#20750]] [1/2019]
https://github.com/bitcoin/bitcoin/commit/d1f932b0b0685690e5142272a2ed6a21237fbf05