perf/core: Don't leak event in the syscall error path