SYNC-277: Create SyncUtil.isFinalState(state) method

https://tickets.openmrs.org/browse/SYNC-277