A Lock with mutex