Refactor DocumentsWriterPerThread to not hold refreneced to IndexWriter

This patch simplifies locking as well as code in DWPT and friends... more to come :)