Add recording for locking events