Rename waitidle to wait_idle.