sanity.c: unbreak compilation on Cygwin

The two worker thread functions need to be static, otherwise it causes the
compiler to complain about missing function prototypes.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>