Update mutex and atomicLock