[PATCH v3 4/5] exit: use pid_has_task() in do_wait()