Fixes #4536: Move r31421 to v1.8 branch (Ensure that the session directory)

---svn-pre-commit-ignore-below---

r31421 [[BR]]
Ensure that the session directory fields of orte_process_info have been initialized prior to cleaning up those directories as part of the initialization process that deals with stale session directory trees.

Fixes #4534

cmr=v1.8.1:reviewer=jsquyres


r31422 [[BR]]
Add some further protections after discussion with Jeff

Refs #4536


r31437 [[BR]]
Trivial format change: use the same length of lines and \n offsets as
opal_show_help().

Refs #4536

r31438 [[BR]]
Protect for the CLEANUP case where tmp hasn't been set yet

Refs #4536
Fixes #4505: Move r31354 to v1.8 branch (osc/sm: fix bugs in both)

---svn-pre-commit-ignore-below---

r31354 [[BR]]
osc/sm: fix bugs in both the passive and active target paths

While testing one-sided on LANL systems I found a couple more OSC
bugs that were not caught during the initial testing:

 - In the passive target code we read the read lock count as a
   char instead of the intended uint32_t. This causes lock to
   lockup when using shared locks after 127 iterations.

 - The post code used the wrong group when trying to increment post
   counters. This causes a segmentation fault.

 - Both the post and wait code used the wrong check in the inner
   loop leading to an infinite loop.

cmr=v1.8.1:reviewer=jsquyres
Fixes #4526: Move r31415 to v1.8 branch (Fix bugs in intercomm creation)

---svn-pre-commit-ignore-below---

'''GK NOTE:''' Only took the MPI_GROUP_NULL fix part of r31424.  The
rest of it will be applied as part of #4527.

r31415 [[BR]]
Fix bugs in intercomm creation and comm split.

This commit addresses bugs discovered by ggouaillardet.

 - Fix hang when creating an intercommunicator

 - Fix memory leak

 - Fix coverity warning cid70288

 - Fix false coverity warning cid1196589

Fixes #4507
Fixes #4522

cmr=v1.8.1:reviewer=jsquyres

r31424 [[BR]]
Per comments from Jeff makes some changes to the communicator changes.

Changed:

 - Use ompi_mpi_group_null instead of MPI_GROUP_NULL.

 - Asserts don't always quiet the clang static analyser. Change them to
   ifs to really quite the warnings.

cmr=v1.8.1:ticket=#4527:reviewer=jsquyres