exit: fix race between wait_consider_task() and wait_task_zombie()