ASoC: topology: use kmemdup rather than duplicating its implementation