You can use the diff code provided by Nishit Singla, with one change. Instead of Insert, please use the "merge" keyword since the insert will consider it as a duplicate entry of the same item.
The below should be sufficient to enable/unlock the field.
Also, make sure you need it in "OpportunityPageV2".