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 Name Job ID Coverage
  Sanity
passed sanity #7759177

00:00:09

 
  Container
passed arm_build #7759180
aarch64

00:00:18

passed arm_test-base #7759181

00:00:19

passed windows_build_vs2019 #7759182
windows shell 1809 mesa

00:00:09

passed x86_build-base #7759178

00:00:20

passed x86_test-base #7759179

00:00:20

 
  Container 2
passed android_build #7759190

00:00:19

passed arm64_test #7759193

00:00:16

passed armhf_test #7759194

00:00:16

passed i386_build #7759187

00:00:15

passed kernel+rootfs_amd64 #7759183

00:00:11

passed kernel+rootfs_arm64 #7759184
aarch64

00:01:17

passed kernel+rootfs_armhf #7759185
aarch64

00:00:11

passed ppc64el_build #7759188

00:00:15

passed s390x_build #7759189

00:00:15

passed x86_build #7759186

00:00:19

passed x86_test-gl #7759191

00:00:15

passed x86_test-vk #7759192

00:00:13

 
  Meson X86 64
passed meson-clang #7759200

00:02:10

passed meson-clover #7759201

00:02:25

passed meson-clover-testing #7759197

00:00:57

passed meson-gallium #7759198
gstreamer

00:01:57

passed meson-release #7759199

00:02:03

passed meson-testing #7759195

00:02:16

passed meson-testing-asan #7759196

00:03:02

passed meson-vulkan #7759202

00:02:04

 
  Build Misc
passed meson-android #7759203

00:00:38

passed meson-arm64 #7759205
aarch64

00:01:33

passed meson-arm64-asan #7759206
aarch64

00:03:22

passed meson-arm64-build-test #7759207
aarch64

00:01:29

passed meson-armhf #7759204
aarch64

00:01:48

passed meson-i386 #7759208

00:00:53

passed meson-mingw32-x86_64 #7759211

00:01:34

passed meson-ppc64el #7759210
kvm

00:01:43

passed meson-s390x #7759209
kvm

00:02:28