Fixes #4642: Move r31781 to v1.8 branch (Add netpatterns_cleanup_narray_knomial_tree function to cleanup)

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

r31781 [[BR]]
Add netpatterns_cleanup_narray_knomial_tree function to cleanup after
netpatterns_setup_narray_knomial_tree.

Fix a bug in ptpcoll that caused memory allocated by
netpatterns_setup_narray_knomial_tree to leak.

cmr=v1.8.2:reviewer=manjugv
Fixes #4697: Move r31955 to v1.8 branch (Fix the Fortran issue identified)

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

r31955 [[BR]]
Fix the Fortran issue identified by Akan Sang Loon. The dist graph
is really special as the weights can be one of the following three
values (NULL, EMPTY or some legal value). As such, we need a complex
if to correctly convert the Fortran value to the corresponding C
value. Thus, always defining the c_ array is the simplest and most
straighforward approach.

cmr=v1.8.2:reviewer=jsquyres
Fixes #4700: Move r31962 to v1.8 branch (OSHMEM: Fix issue with incorrect)

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

r31962 [[BR]]
OSHMEM: Fix issue with incorrect mca variables registration

Few components had wrong mca variables registration procedure
List of them:
- atomic basic and mxm
- spml yoda and ikrit
Two mca variables as runtime_api_verbose and runtime_lock_recursive change
names to oshmem_api_verbose and oshmem_lock_recursive otherwise they
were not shown by oshmem_info tool.

fixed by Igor, reviewed by Miked
cmr=v1.8.2:reviewer=ompi-rm1.8