This function, which uses the `MigrationLock`, gets only called from `migrationLifecycleObserver`, which is used both in this function and in `migrateOnlineMaster`, which also uses that lock. Either this is not an actual lock, or you might have a potential deadlock...