net/mlx5: fix endless loop when clearing flow flags