winpr-thread: close fds before exec new process

Close all open file handles, except stdion/stdout/stderr before executing a new process
to make sure that no file descriptors leak or kept open.
Merge pull request #4 from bmiklautz/closefds

Close file descriptors