vmm: Fix casts around kmem_malloc/free() calls
This is a direct commit to stable/13.
Reported by: Jenkins