add middleware to monkey-patch os.env to be thread local for GAE compatibility
add middleware to monkey-patch os.env to be thread local for GAE compatibility

GoogleCloudPlatform/python-compat-runtime,GoogleCloudPlatform/python-compat-runtime,GoogleCloudPlatform/python-compat-runtime,GoogleCloudPlatform/python-compat-runtime,GoogleCloudPlatform/python-compat-runtime