[PATCH openEuler-26.09 378/399] sched/ext: Fix invalid task state transitions on class switch