perf tools: Introduce dsos__fprintf_buildid