wined3d: Check validity of rects before locking surface in Blt.