BUT… are you sure it wasn’t just queue-ing the program change before you muted it, and then triggering it at the pattern end?
(tbh, I haven’t played with this much, so someone else may be better placed to advise…)
seems to be working here with a regular MIDI cable, but dunno about mutes: