Added locking to migrate. Fixed issue with vm create