Fix Mutex lock/unlock