[DON'T MERGE - JUST REVIEW] Fixes atomicity issue of TransactionalMap.get()

Fixes #3191