subr_unit.c: make userspace tests buildable
(cherry picked from commit 6fe78ad434557a713ebf5159ac6ac4052ef3da1c)