compat: implement changing_parents context manager
It combines the compatibility layer for the recently renamed changing_parents (was parentchange) on dirstate class with quick_access* handling code into one context manager, which should be slightly more pleasant to use.