optimize ConcurrentDictionary access

- Count and Keys lock all the locks