[PATCH 5.15 223/402] perf bench internals inject-build-id: Fix trap divide when collecting just one DSO