Allow index.merge.scheduler.max_thread_count to be dynamically changed

Lucene allows the max_thread_count to be updated, but this wasn't
fully exposed in Elasticsearch.

Closes #6882