I'm not sure this is what you want but here goes. Use the arrow select tool and drag a rectangle around all of your dims. Now select edit>toggle lock. You will get all of the selected ones at once.
There is no way to set this in config file.
What prohow is mentioned is the right way, but this will lock only the modified dimensions.
You can suggest this to PTC