Moved awkward io-bridge passing to a THREAD_LOCAL

Conflicts:
	android-tools/adb-bin/adb.cpp
	android-tools/adb-bin/exports.cpp
Revert "Moved awkward io-bridge passing to a THREAD_LOCAL"

This reverts commit 15c7ea359e947f2667e9a13224e4facf4012c8f5.
Revert "Revert "Moved awkward io-bridge passing to a THREAD_LOCAL""

This reverts commit bc286b4e515762ffed72cc33e5c838618ebaab26.
THREAD_LOCALS bridge worksish on windows
Revert "THREAD_LOCALS bridge worksish on windows"

This reverts commit 12882ed4ca5a6b7320a395097ae0a885fcfa285a.
Revert "Revert "Revert "Moved awkward io-bridge passing to a THREAD_LOCAL"""

This reverts commit 84d53117e63be3d4dc56d733b826a34972d0fe22.
Safely exit the output/input threads (Windows)