Enable/disable the Locked menu item depending on whether the current file is modified.