remove $lock, $unlock