Update thread.c

remove duplicated "#include <errno.h>"