drm/i915: Wait for pending page flips before enabling/disabling the primary plane