fixed add_sleep_thread proto in threads.h