fix race in test for scorch batch callbacks
fix race in test for scorch batch callbacks

previous version access/modifies values from
multiple goroutines.
this version uses a waitgroup to know that the
callback fired, if the callback does not fire
the test will timeout.

blevesearch/bleve,blevesearch/bleve