net/mlx5: make port ID action cache thread safe