[PATCH 1/6] ddraw: Factor out ddraw_surface_is_lost() function.