You can set the default lock state for all opened editors in the Preferences XML Editor Format preferences page.