sched: fix crash in sys_sched_rr_get_interval()