fix lock flag in a rare state which could leave GUI in permanently locked state