Socket: Fix race condition in SSL handshakes.
Prevent crash of httpserver in some requests. (Why? No idea.)
Fix RFC-compliance of privmsgs/notices/kicks/whois/... with list of nicks/channels are argument. Closes GH-462.