Make lock statistics thread independent.