drm/i915: Use a common fence writing routine