Draft: vrend: use glGetQueryBufferObject*
When retrieving queries into query buffers, use glGetQueryBufferObject* which bounds checks the offsets.
See https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/mesa/main/queryobj.c#L1143
Tested glcts --deqp-case=KHR-GL46.*query*
Closes: https://gitlab.freedesktop.org/virgl/virglrenderer/-/issues/394
Edited by Juston Li