finish/fix multithreaded s2 index generation