Correct CPU ID on Power7

Correct logic to support Power7 processor with 1 or 2 threads per core
(CPU IDs are not consecutive).
bug 891
Merge branch 'slurm-2.6' into slurm-14.03
Serialize sinfo as needed

the sinfo command is parallelized for performance reasons and it
really can not be completely parallelized for some use cases.
see bug 883
fixes to the NEWS file
If a srun runs in an exclusive allocation and doesn't use the entire
allocation and CR_PACK_NODES is set layout tasks appropriately.

This is related to bug 890
Document when a job's shared field can change

Only for pending jobs
bug 899
Correct job shared info

Correct Shared field in job state information seen by scontrol, sview, etc.
Print Slurm error string in scontrol update job and reset the Slurm
errno before each call to the API.
Fix task/cgroup to handle -mblock:fcyclic correctly
Fix in HDF5 for NULL hostname

The hostname was being set as an HDF5 value before the field was
set in slurmstepd, resulting in SEGV. This change sets hostname
before the HDF5 call and also tests for NULL before trying to set
the value. Backtrace of failure:
(gdb) bt
0  strlen () at ../sysdeps/x86_64/strlen.S:106
1  0x00007f4af5bb756d in put_string_attribute (parent=33554432,
   name=0x7f4af5bb8591 "Node Name", value=0x0)
   at src/plugins/acct_gather_profile/hdf5/hdf5_api.c:1711
2  0x00007f4af5bad224 in acct_gather_profile_p_node_step_start (job=0x194cc80)
   at src/plugins/acct_gather_profile/hdf5/acct_gather_profile_hdf5.c:372
3  0x000000000052ca86 in acct_gather_profile_g_conf_set (tbl=0x194cc80)
   at src/common/slurm_acct_gather_profile.c:490
4  0x000000000042e028 in batch_stepd_step_rec_create (msg=0x194d280)
   at src/slurmd/slurmstepd/slurmstepd_job.c:496
5  0x0000000000426ae5 in mgr_launch_batch_job_setup (msg=0x194d280, cli=0x194bec0)
   at src/slurmd/slurmstepd/mgr.c:422
6  0x00000000004263da in _step_setup (cli=0x194bec0, self=0x0, msg=0x194bd90)
   at slurmd/slurmstepd/slurmstepd.c:516
7  0x0000000000424302 in main (argc=1, argv=0x7fff1f7c6c98)
    at src/slurmd/slurmstepd/slurmstepd.c:127
Purely cosmetic changes
core reservation distribution fix

Fix for core-based advanced reservations where the distribution of cores
across nodes is not even. Failing test case:
system has 10 nodes, 1 of which is fully occupied
create reservation with 9 nodes and 10 cores
always would fail with "busy nodes" error
Fix header of file to represent the correct file
Fix issue where association maxnodes wouldn't be evaluated correctly if a
QOS had a GrpNodes set.
fix gres topo array index

Logic used to identify cores which are usable with each GRES weas incorrect.
bug 905
Remove some vestigial logging function arguments
Improve accuracy of a log message
When a job is requeued make sure accounting marks it as such.
Print the state of requeued job as REQUEUED.
Minor reword of comment