Merge pull request #7953 from stenzek/lazy-d3d12-perf-queries D3D12: Fix case where perf queries weren't flushed