Fixes for multiprocessing.Pipe file descriptor leaks.