[PATCH 2/6] ddraw: Factor out ddraw_surface_lock_ddsd() function.