Update g_lock.cpp