[PATCH] drm/i915/guc: Fix flag query helper function to not modify state