Set main thread affinity before main heap is allocated