Set single-core affinity.

Ported from Chocolate Doom.