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

This issue also applies to TCP scanner modules.