If proxy0 ever goes down, this could end up in a never-ending loop burning through CPU.Maybe we could add a counter in here and simply bail out if we can't get a lock after 5(?) attempts?