Avoid sync methods in IRCd thread

Also fix a bunch of string replacements to use the new {} syntax

(code provided by @glguy)