[telegram-desktop/f33] Backported upstream patches with startup hangs fixes.