Fix allocation when ntasks-per-core=1 and nodes have SMT

we've been unable to submit jobs that request one task-per-core
when we have SMT enabled (but it would work successfully for
jobs that wanted two tasks-per-core).
I ended up tracking it down to a regression caused by commit
8127554abc5d40ac516d130675b68fea70ea333a.
See bug 322