Refactor tor's circuit path node selection checks
In #33222 (moved), we added an extra "can extend over IPv6" check to tor's circuit path node selection code.
To make sure it's applied consistently, I did a refactor of that code, so all those checks are in one function.