Code to handle a locked document was ported from SDK2 which contained logic for treating a "locked" document as a temporary failure for backwards compatibility.
See NCBC-1500 for reference.