[PATCH 4.9 216/310] perf/core: Correct event creation with PERF_FORMAT_GROUP