Henri Verbeet : d3d8: Fix locking.