Better logging around locking.