See lock_not_acquired - It's one of those tricksy things you use to get around scoping, so that we can increment retries from within lock_not_acquired.