Fix core_spec support with Shared=yes partition

If a partition was configured with Shared=yes, then submitting a
job with --core-spec option failed to allocate the node exclusively
to that job.