This is a way to do it:
Add a flag in your table, call it 'Locked'.
When you want to 'lock' prices, set it's value to true (flag it).
In your form, add the flag you just created. You can make it visible or hide it, it doesn't matter.
On the field(s) you wish to lock when the flag is flagged...