[Bug 9729] gdi/x11 related changes cause lockups in various win32 gui apps