mesa: Add StoreQueryBufferObject Driver hook

This hook is used by drivers to implement
ARB_query_buffer_object without CPU roundtrip.
This patch also adds mesa logic calling this hook
when necessary.