d3d: Add a test for double surface locking.