Using cbReadWriteSynch to sync callback to the end of the current time step