add global lock functions to PCU_Thrd