Fix another oversight in thread.c.