add lock_metux and unlock_mutex