wrap_mutex_lock