In srun honor ntasks_per_node before looking at cpu count when the user
doesn't request a number of tasks.
Fix ghost job when submitting job after all jobids are exhausted.

Bug 1327
Merge remote-tracking branch 'origin/slurm-14.11'