arch/x86/intel-mid: Use kmemdup rather than duplicating its implementation