logging for locks