[courier/segmentedState] ensure that events will always emit in order