Respect the SLURM core limits when provided --max-threads
Respect the SLURM core limits when provided --max-threads

This used to ignore the computed SLURM core limit when provided
--max-threads, which caused some jobs to be unschedulable.

ucb-bar/plsi,ucb-bar/plsi