Move lock/unlock logs to events