Corrected document unlocking (refs #3918)