Fix signed/unsigned confusion in subprocess_thread_func.

Andrey Olkhin found that a test was always true because of the
signedness of a type.
http://seclists.org/nmap-dev/2013/q1/210