fix race condition when opening torrent/magnet dialog