kern/subr_unit.c: fix non-debug build
(cherry picked from commit 1384a0b940e87876d36d50ad58581c24dc642714)