Change spa_strdup to normal kmem_alloc, to ensure correct free size