Fixed a couple of issues with locked files and editors.