perf tools: Fix buildid cache handling of kallsyms with kcore