This forces mesa LLVMPIPE driver to use only one thread, and greatly reduces its memory usage. The driver otherwises uses much more memory than another driver would and often exhaust VM space in 32bit tests.
I believe this should fix several D3D/D2D/DShow test failures which are plaging Gitlab CI.
-- v2: gitlab: Run tests with LP_NUM_THREADS=4 env var.