[tor-commits] [tor/master] Bug:24531 Add function to change scheduler state and always use it