net/ice/base: replace alloc-followed-by-copy with memdup