ktrace: Fix an inverted privilege check
Approved by: so
Security: FreeBSD-SA-24:06.ktrace
Security: CVE-2024-6760
Fixes: 1762f674ccb5 ("ktrace: pack all ktrace parameters into allocated structure ktr_io_params")
(cherry picked from commit 166b7573b5220aadf8b02a85933c9651b909b309)
(cherry picked from commit 8b400c8488f0b9e67ae269f6d8e5022a3bc7d854)