Assert on locking