Migrate profile version to VersionIdentity
Migrate profile identity from string to ProfileIdentity
Remove duplicate DEFAULT_PROFILE_IDENTITY definition
Restore profile version locking as part of the container lock