Remove duplicate DEFAULT_PROFILE_IDENTITY definition
Restore profile version locking as part of the container lock