perf tools: Use build_id object in dso