sched, idle: Fix the idle polling state logic