modify lock ck function for crashed process