net/mlx5: fix detection of counter offset support