Make sure the background migration is finalized before last required stop (min GitLab schema version).