agent: Kludge to mitigate blocking calls in Libgcrypt.