[PATCH 5.15 132/135] perf build-id: Fix caching files with a wrong build ID