[PATCH 6.12 082/172] perf tools: Fix build-id event recording