bugfix : node_names coming from chash_lookup are not null-termianted
remove the item from the cache only after ensuring the new value has been stored
restored thread safety after last changes involving switching from mutexes to spin locks