ide: add ide_busy_sleep() helper