[PATCH 6.6 157/204] perf/core: Fix WARN_ON(!ctx) in __free_event() for partial init