[tor-commits] [tor/master] relay: Split state checks out of circuit_extend()