Stefan Dösinger : d3d9: Hold the lock in stateblock methods.