[PATCH 5.10 176/317] perf bench internals inject-build-id: Fix trap divide when collecting just one DSO