PixInsight is a multithreaded environment, where data access has to be synchronized among the core applications and the different modules installed. Before a module can change an image, it must lock it for read/write operations, so nobody else can access the image. When the module finishes working with the image, it must unlock it.
This error message means that an image was left locked by a module, which is a serious implementation error. Hopefully it is not one of the standard modules (that is, the set of modules that are included in the standard PixInsight distribution). Have you installed an unofficial module? Can you identify some process that you normally don't use but you did use before this error happened?
As Rob says, the best thing you can do is issuing this command from the Process Console window:
close --force <name_of_the_locked_image>
where you replace <name_of_the_locked_image> with the actual image identifier. The --force argument will close the image unconditionally, ignoring lock states. If the image is important, you can try to duplicate it before doing this.