ORBSearcher: avoid locking and unlocking each time countTotalNbWord is called