addUnchecked
is (outside the tests) only called by ATMP, which already takes the tx pool read lock. So locking it twice more in both addUnchecked
methods seems redundant.
Similarly CalculateMemPoolAncestors
is (beside once in the wallet) only called in contexts, where the tx pool lock is already taken. So remove the lock there as well.