ukswitch: fix non-debug build
PR: 278847 Sponsored by: The FreeBSD Foundation
(cherry picked from commit 2e0c027e69de66afc1157c76bd42ecd3737d54e1)