wait: fix reparent_leader() vs EXIT_DEAD->EXIT_ZOMBIE race