Correct select/cons_res logic to allocate CPUs properly if there is more than one thread per core (previously failed to allocate all cores).