Fixes 'zfs send' bug caused by premature fifo close.

Closing newstdout before the pthread_join would often corrupt
the send, by accidentally closing the fifo before the other
thread had finished with it.