Fixes an assert on client thread exit on win8.1 by adding a special dcontext debug-only field for exiting client threads.
Fixes an assert inside the client.thread test itself by setting the TLS for all threads, not just the main one.
Fixes #2237 (closed)