implement concurrent access to document and hash table locks