* ctdl_internal_thread_func(): just use SYS_gettid if the system provides it. thit...