(C) Separate the id of the thread from its affinity. Fixed #45.