Add multithread and synchronization support to Dynamic hash table.