d3dx9: Properly check if a texture is lockable in D3DXCreateTextureFromFileInMemoryEx.