Prevent setting thread affinity to an invalid CPU number...