Only set the read-only flag if a checkpoint completed successfully