util/chrono-sync: In ChronoSync, move the functionality of getFlag to the isRecovery argument of OnReceivedSyncState. Make the Chat class remember isRecoverySyncState_ and use it the same as getFlag().