Customised a message from the metadata editing view, based on whether a file is locked.