wined3d: Don't free D3D surfaces until the wined3d surface is destroyed.