GnuTLS: clear errno before any data i/o op, so error logging does not see stale values