added variant of RwLockedDictionary for auto-adding keys and values