Add method to unlock the document.