As suggested by Stephan Ewen within review for PR-8693, it would be worthy to refactor all checkpointing parts into a single place on task side.
This issue focus on refactoring these parts.
Refactor checkpoint related methods within Environment
Remove useless SynchronousSavepointLatch
Checkpoint cancellation is not propagated to stop checkpointing threads on the task manager
GitHub Pull Request #11721