dwrite: Protect entire draw operation with D3D11 lock
d2d runtime seems to execute pending GPU command list when DXGI ID2D1RenderTarget is being released, and it will invoke d3d11 immediate context APIs. Should protect all rendering operations and DXGI resources with lock.