gallium: make pipe_context::begin_query return a boolean