This commit changes the generic TLS stream code to maintain a per-worker thread TLS context reference.