[cleanup] Remove some old debugging code
[bugfix] Call the RestrictPartitioning method more often before adaptive refinement

That fixes crashes I experience when combining adaptive refinement and load balancing.
I am not quite sure whether this is really the correct fix, but for the time being
it solves the problem.