Make specific functions to lock/unlock UIntMap access