Wrap transition-related queueSyncSet into a helper function

This is only one step, but it is necessary for when we need to
do things for every queued-transition.

Bug: 264536014
Test: Existing tests, this is non-functional, just refactor.
Change-Id: I52c6ef2ae080d2642681a648875193e4afc7c1af
7 files changed