Move the checkpointing-disabled guard into BaseCheckpointManager (#4173)