towards threaded build_index impl