Add mutex and basic map functionality to SharedMap