(from 2.x) register Lock edit mode as an enum to provide restore of Lock edit mode