[bugfix] collection completion in CLI client

tab-completion does not double the first character of the completed collection name any mode
[bugfix] remove possible deadlock in XQueryPool