[PATCH 6.12 033/590] sched: Split out __schedule() deactivate task logic into a helper