NEXUS-7609: Prevent saving attributes, proper fix

0d9e3f4c1faad507c6ab0f96218cfde9b8d75620 change was not thread safe,
and also it was only partially fixing the problem. In general,
NX Core should NEVER handle NPM metadata items as expired/old.