ddraw: Hold the lock in IDirect3DMaterial methods.