d3d: Sync bitmaps before resizing display to prevent changes being lost
after the resize.

This also fixes a bug with missing TTF glyphs following al_resize_display
(reported by APrince): https://www.allegro.cc/forums/thread/611833