Is it possible to deploy an
Unlocked package to a production org, then upgrade the package to
Managed and upgrade the package in the production org?
I have not tried this, but I don't think you could do.
The Salesforce DX Developer Guide:
You can’t change the package namespace or package type after you create the package.