Simpler ifdefs for thread affinity.