MAID-524_sanitizer_analysis_account_transfer

`std::lock_guard<std::mutex>` is cheaper I think.