Improved performance of Process.run when threads aren't supported.
Patch taken from githelper: Instead of calling Pike.DefaultBackend() until
p->status() says that the process has terminated, loop until both stdout and
stderr have been closed. This is better because otherwise we may be stuck
inside the backend for up to one second while the process is already
terminated. This change gives a considerable speedup on Solaris.