[d3d11] Lock immediate context when submitting presentation commands
Otherwise, a race condition occurs if a game submits rendering commands at the same time as presenting the swap chain image. Only works if multithreaded protection is enabled, but according to MSDN, it is illegal to use DXGI commands and the immediate context in parallel. Fixes stability issues in Tales of Vesperia.
Showing with 6 additions and 4 deletions