[library] Use more efficient constructor for ConcurrentHashMap