Change the connect-to-bzr test so that it cleans itself up.
We have to tell the transport to disconnect, which unfortunately means poking at private variables, but only for this test. This still leaves 2 non-main threads active and 'leaked', but that might actually be paramiko. Hard to tell for sure.