CVE-2025-37747 perf: Fix hang while freeing sigtrap event