strbuf: clear errno before calling getdelim(3)