[PATCH 6.6 494/744] perf bench internals inject-build-id: Fix trap divide when collecting just one DSO