This makes it so that DumpMempool doesn't depend on MICRO anymore
This is a partial backport of [[https://github.com/bitcoin/bitcoin/pull/25487 | core#25487]]
https://github.com/bitcoin/bitcoin/pull/25487/commits/bd4407817e523e3c5b347bc6be25ed007cb27034
Depends on D15715