mlx5/core: Use memdup_user() rather than duplicating its implementation