machine set to multithreaded rtc step, dispatch only from one working thread
update Sync macro and functions, fix multiple do activities generation, fix parameters reference in fsm class
fix duplicate transition check, fix completion transition selection, and do terminate on completion in final state
update file examples fsm
Fix tests, fix event processing and refactoring