drm/i915: extract object active state flushing code