[network] set_thread_cbs so we initialize the right threading mode in gcry_check_version

/cc https://github.com/collectd/collectd/issues/513