NG-16666 Add max-threads command line option