only sleep in 1ms intervals while waiting for locks, and detect stale locks
only sleep in 1ms intervals while waiting for locks, and detect stale locks

wmorgan/whistlepig,wmorgan/whistlepig,wmorgan/whistlepig