CVE-2025-37940 ftrace: Add cond_resched() to ftrace_graph_set_hash()