Corrected document unlocking (refs #3954)
Merge pull request #836 from eguaj/3.2-A3954

Corrected document unlocking (closes #3954)