MemIndex goroutine-based indexing with WaitGroup for sync