Replaced AtomicInteger's implementation back to old implementation + EqualObjectsMutex.
This version also removed entries if value is 0.