fixed multithreading in average clustering coefficient