This tests that a mempool transaction expires after a given timeout
and its children are removed as well.Both the default expiry timeout defied by DEFAULT_MEMPOOL_EXPIRY and
a user definable expiry timeout via the -mempoolexpiry=<n> command
line argument (<n> is the timeout in hours) are tested.
This is a backport of Core PR18172