Wait on query being available, not !active.
Wait on query being available, not !active.

These are not quite equivalent -- it is possible that we will start waiting before the query begins.

Tests: dEQP-VK.query_pool.occlusion_query.get_results_conservative*
Change-Id: I66fbe389b5329fbf34ff78cf3cea1078339b2b10
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/30728
Tested-by: Chris Forbes <c3279c50043e18e9442c1ae071cafa0e7a4ca967@google.com>
Kokoro-Presubmit: kokoro <2ac7b1f3fa578934c95181d4272be0d3bca00121@google.com>
Reviewed-by: Alexis Hétu <1c7141772178a7e80858c3db5052b328076f08f4@google.com>

google/swiftshader,google/swiftshader,bkaradzic/SwiftShader,google/swiftshader,bkaradzic/SwiftShader,bkaradzic/SwiftShader,bkaradzic/SwiftShader,bkaradzic/SwiftShader