[tor-commits] [tor/master] Move responsibility for checking if events are setup into periodic.c