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