Put a global lock on the hash table.