Cancel the event if we're locking/unlocking the object.