sleep: Add more precautions to avoid consing on x86.