[PATCH v2 4/5] exit: use task_alive() in do_wait()