sched: fix new task startup crash