Handle the case where glob result changed during incremental build.

Bug: 358427516
Test: Unit tests and compare the generated ninja and mk files.
Change-Id: I9fb95999054f029db32792ce2aa4f0a9ea1785ce
4 files changed