Fix race condition

ui is freed in the subthread, so we cannot use ui->sync after
calling IDLE_ADD(remmina_rdp_event_queue_ui)