perf_counter tools: Fix strbuf_fread() error path handling