Issue #2697 thread local counters were integrated in RW lock.