Quiescent checkpointing algorithm (for any type of log)