I could add a:
IPropertyTree *CDistributedFile::closeConnection()

and have CFileChangeWriteLock call that instead of Owned references.