interesting idea. why didnt i think about this
i'm not sure if that works, but i would give it a try in the following way:
check the midi value of the sync button (e.g. cc 27 or whatever) and memorize it.
go to the button that selects the master and add an output value with that sync cc message and see if that works.