references__protected: task-safe portable variant of Natools.References, based on protected counters