Correct ntasks_per_core test logic

Now that slurm is checking that the job's ntasks_per_core is valid,
this tests bad value was causing the job submit to fail. Change
the option to use ntasks_per_socket instead, which matches the
test logic.