Fixed syntax errors in threads.c