Limit threads to 1 when CPORT is set, closes #4170

This issue also applies to TCP scanner modules.
Land #4174, @hmoore-r7's fix for #4170