d3d12: actually execute the pending commands before processing resize
This makes sure all the resources are in the expected state
Fix the D3D12 case in https://github.com/libsdl-org/SDL/issues/6376
(cherry-picked from commit df1bd07dee4e167bec5ac8b606461f2007bc7b10)