perf: Fix race in swevent hash