[PULL 02/10] ui/gtk: Fix gd_refresh_rate_millihz() when widget window is not realized