add thread-safety and value-change handler to cKeyValueContainer