Fix bug in setThreadAffinity() (Linux)