Properly close child handles in winproc device
When spawning a child with pipes we have to close all
the Handles we inherited otherwise the Pipe will not
close by itself. This semi worked for Write Only
because we closed the inhertied end of the pipe
instead of our own side..
This was the real reason for:
- GnuPG-Bug-Id: T6139