MSM:Mutex implementation