fn validate_locked_and_frozen_options( in_workspace: bool, gctx: &GlobalContext, ) -> Result<(), Error>