Reinserted refCounter increment since it used to be a side effect of a method that was removed.
synchronize access to the totals map
HashDbIngestModule: slight optimization for totals access (reduce number of lock acquisitions)