[PATCH 6.1 334/473] perf bench internals inject-build-id: Fix trap divide when collecting just one DSO