[tor-commits] [tor/master] Initialize mainloop events earlier, since other stuff may run them.