d3d9/tests: Test invalid locks with textures.