[tor-commits] [tor/maint-0.2.9] backport to make channel_is_client() accurate