reparent_leader: check EXIT_DEAD instead of task_detached()