[tor-commits] [arm/release] fix: race condition between events and listeners