net/mlx5: change device reference for secondary process