iris: Enable u_threaded_context

This implements most of the remaining u_threaded_context support.  Most
of the heavy lifting was done in the previous patches which fixed things
up for the new thread safety requirements.  Only a few things remain.

u_threaded_context support can be disabled via an environment variable:

   GALLIUM_THREAD=0

On Felix's Tigerlake with the GPU at fixed frequency, enabling
u_threaded_context improves performance of several games:

   - Civilization VI: +17%
   - Shadow of Mordor: +6%
   - Bioshock Infinite +6%
   - Xonotic: +6%

Various microbenchmarks improve substantially as well:

   - GfxBench5 gl_driver2: +58%
   - SynMark2 OglBatch6: +54%
   - Piglit drawoverhead: +25%

Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <!8964>
35 jobs for !8964 with iris-thread in 3 minutes and 56 seconds (queued for 2 seconds)
latest detached
Status Job ID Name Coverage
  Sanity
passed #7759177
sanity

00:00:09

 
  Container
passed #7759180
aarch64
arm_build

00:00:18

passed #7759181
arm_test-base

00:00:19

passed #7759182
windows shell 1809 mesa
windows_build_vs2019

00:00:09

passed #7759178
x86_build-base

00:00:20

passed #7759179
x86_test-base

00:00:20

 
  Container 2
passed #7759190
android_build

00:00:19

passed #7759193
arm64_test

00:00:16

passed #7759194
armhf_test

00:00:16

passed #7759187
i386_build

00:00:15

passed #7759183
kernel+rootfs_amd64

00:00:11

passed #7759184
aarch64
kernel+rootfs_arm64

00:01:17

passed #7759185
aarch64
kernel+rootfs_armhf

00:00:11

passed #7759188
ppc64el_build

00:00:15

passed #7759189
s390x_build

00:00:15

passed #7759186
x86_build

00:00:19

passed #7759191
x86_test-gl

00:00:15

passed #7759192
x86_test-vk

00:00:13

 
  Meson X86 64
passed #7759200
meson-clang

00:02:10

passed #7759201
meson-clover

00:02:25

passed #7759197
meson-clover-testing

00:00:57

passed #7759198
gstreamer
meson-gallium

00:01:57

passed #7759199
meson-release

00:02:03

passed #7759195
meson-testing

00:02:16

passed #7759196
meson-testing-asan

00:03:02

passed #7759202
meson-vulkan

00:02:04

 
  Build Misc
passed #7759203
meson-android

00:00:38

passed #7759205
aarch64
meson-arm64

00:01:33

passed #7759206
aarch64
meson-arm64-asan

00:03:22

passed #7759207
aarch64
meson-arm64-build-test

00:01:29

passed #7759204
aarch64
meson-armhf

00:01:48

passed #7759208
meson-i386

00:00:53

passed #7759211
meson-mingw32-x86_64

00:01:34

passed #7759210
kvm
meson-ppc64el

00:01:43

passed #7759209
kvm
meson-s390x

00:02:28