JBERET-52 fix the invocation time of CheckpointAlgorithm.beginCheckpoint and endCheckpoint methods.