Henri Verbeet : d3d9: Add some missing locking to IDirect3DDevice9Impl_EndStateBlock().