sched: Sanitize fork() handling