kernel - Correct bug in malloc_type ks_memuse/ks_inuse management