Fix traceback regresssion when using tpool.Proxy on sys.stdin under windows and vita.