net/mlx5: make header reformat action thread safe