Simplify tracking of changed units and fix invalidation

* There were two almost identical checks in different places
** First check failed because assignment was written as comparison
** Second check did not change the correct variable
* Do not store the changed sections anymore - no longer used

Bug: 47178
Change-Id: I44a4b5ae96fac6fb8110436c420a92f0640302de