Set worker thread affinity on linux.