Move gtod thread to gettime.c