mesa: Add StoreQueryBufferObject Driver hook

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