Avoid using libgcrypt in multi-threaded mode

Irssi uses fork() for various features (non-blocking DNS resolving) and
scripts are free to use it as well, which means we cannot use pthreads.