Locking issue in distributor

Make sure that we dont try to get workers while we are in the middle of clearing availability (backported from nServiceBus 4)