drm/i915: Add i915_gem_check_wedge()

From Linux 3.8.13
kernel: Fix KTR compilation.