perf evlist: Fix access of freed id arrays