gettime: only use CPU affinity if available