config: add new index.threads config setting