Fix cmd_threads

Original: https://github.com/limhoff-r7/metasploit-framework/pull/7

MSP-9006

Fix cmd_threads for all options and add specs for handling of each
option. Additionally, improve the tab completion to allow for multiple
compatible options to be completed at once instead of only allowing one
option and argument.