Fix and unit test for CMIS-743 in which cmislib was failing to check out a doc after being fetched by ID