ARM64: sched: fix bug: avoid infinite loop