fix attempt to free memory used by mutex in irc_destroy_session()