Check exit conditions when locks are not acquired for safety