sched: fix RT task-wakeup logic