refresh the searcher manager after the index writer is finished (otherwise
the searchers won't see any changes in the index).

other changes:
synchronized reader and searcher too, and modified close to close and
null out all resources.