perf/core: Correct event creation with PERF_FORMAT_GROUP