modify lock.h