UnitSync.cs: replace 2 loop from 4478d61b485ebb17d39 with a callin.

Just a tiny cleanup.