common/mlx5: fix code arrangement in tag allocation