Remove a bunch of synchronisation from client.rs

The channel hashmap and associated mutexes are now dealt with entirely
in ircthreads.rs.