server: correctly unset reexec_pid on child death