d3d11: Resize related enhancement and refactor thread model
Summary:
- Various fix/enhancement for window resize
- Add support for full screen mode change
- Port to recent dxgi APIs
- rework for concurrent d3d11 immediate context and dxgi access
close #1156 (closed) and close #1140 (closed)