Initialize pthread_handle_num.