gspawn, win32: fix child stderr when coverage enabled
This fixes test that were added in previous commit: checking for empty stderr failed with coverage enabled, since coverage warnings printed from gspawn-win32-helper process were treated as child output. This is fixed by removing redirection after child finishes execution. The dup_noninherited renamed to reopen_noninherited, since it actually always closes passed file descriptor.
Showing with 14 additions and 7 deletions