More general yet more local fix of UISupport threading problems (only in SwingDialogs)