[PM] Fix the const-correctness of the generic DominatorTreeBase to