phases: directly update the phase sets in advanceboundary
This is similar to what we do in retractboundary. There is no need to invalidate
the cache if we have everything at hand to update it.
#require docutils gettext $ $TESTDIR/check-gendoc fr checking for parse errors