Testsuite sometimes hangs during termination
Imported from https://youtrack.roxen.com/issue/PIKE-196
Reported by @grubba
The main test_pike
process waits on the watchdog to die after having closed stdout, but the watchdog has already closed its stdin, so the correspponding close callback will not be triggered.