Stats: add segments.index_writer_max_memory to stats

We recently added stats for how much RAM IndexWriter is currently using (#6483); this also adds the max RAM IndexWriter is allowed to use before it must flush buffered documents to a new segment.

Closes #7438