init, sched: Fix race between init and kthreadd