Use .haveTransaction in new getmempool RPC code.

The mempool is already locked and the exported version locks it, so the
unexported version is needed.