This is currently unused, but will by used by wallet to cache when
transactions are in the mempool, obviating the need for calls to
mempool from CWalletTx::InMempool()
This is extracted from Core's PR10286 commit a7d3936de8418522dbb161bfef31c234fc6c2503