llvmpipe/lavapipe: fix begin query race

begin query gets called from lavapipe but the constant buffers
that the previous lvp_execute unbound, are still internally
bound to the setup code. This leads to a use after free since
lavapipe expects those buffers to no longer have users.

This is likely a mismatch between vulkan and gallium constant
buffer lifetimes, but I'm not sure how best to fix that.

This works around it for now, lavapipe emits state when
it gets a begin query and llvmpipe is changed to update state
on begin query, and is fixed to avoid some pitfalls from doing
that, this ensures the setup fs constants are cleaned out

dEQP-VK.rasterization.discard.triangle_list.query_pipeline*
50 jobs for !9043 with lavapipe-asan-fixes in 16 seconds (queued for 6 seconds)
latest detached
Status Job ID Name Coverage
  Sanity
passed #7336075
sanity

00:00:16

 
  Container
manual #7336081
aarch64 manual
arm_build
manual #7336083
manual
arm_test-base
manual #7336085
windows shell 1809 mesa manual
windows_build_vs2019
manual #7336077
manual
x86_build-base
manual #7336080
manual
x86_test-base
 
  Container 2
created #7336118
android_build
created #7336123
arm64_test
created #7336125
armhf_test
created #7336114
i386_build
created #7336089
kernel+rootfs_amd64
created #7336090
aarch64
kernel+rootfs_arm64
created #7336092
aarch64
kernel+rootfs_armhf
created #7336115
ppc64el_build
created #7336117
s390x_build
created #7336112
x86_build
created #7336120
x86_test-gl
created #7336121
x86_test-vk
 
  Meson X86 64
created #7336137
meson-clang
created #7336139
meson-clover
created #7336131
meson-clover-testing
created #7336133
gstreamer
meson-gallium
created #7336135
meson-release
created #7336128
meson-testing
created #7336130
meson-testing-asan
created #7336141
meson-vulkan
 
  Build Misc
created #7336144
meson-android
created #7336147
aarch64
meson-arm64
created #7336149
aarch64
meson-arm64-build-test
created #7336146
aarch64
meson-armhf
created #7336150
meson-i386
created #7336156
meson-mingw32-x86_64
created #7336154
kvm
meson-ppc64el
created #7336152
kvm
meson-s390x
 
  Software Renderer
created #7336169
lavapipe-vk
created #7336167
llvmpipe-gles2
created #7336158
llvmpipe-piglit-cl
created #7336161
llvmpipe-piglit-glslparser
created #7336160
llvmpipe-piglit-quick_gl
created #7336163
llvmpipe-piglit-quick_shader
created #7336165
llvmpipe-traces
 
  Layered Backends
created #7336181
virgl-gl30-on-gl
created #7336182
virgl-gl31-on-gl
created #7336183
virgl-gl32-on-gl
created #7336175
virgl-gles2-on-gl
created #7336179
virgl-gles31-on-gl 1/2
created #7336180
virgl-gles31-on-gl 2/2
created #7336177
virgl-gles3-on-gl
created #7336173
virgl-traces
created #7336172
zink-piglit-quick_gl