wined3d: Fix potential NULL dereference in IWineD3DSurfaceImpl_LockRect.