Fixes #4621: Move r31749 to v1.8 branch (bml/base: ensure all components are)

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

r31749 [[BR]]
bml/base: ensure all components are closed when the framework is
closed

We were leaving the selected component open. This commit should
eliminate a leak detected by valgrind.

cmr=v1.8.2:reviewer=jsquyres
Fixes #4648: Move r31808 to v1.8 branch (OSHMEM: refactor to fully comply)

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

r31808 [[BR]]
OSHMEM: refactor to fully comply to the OpenSHMEM spec and fix some proto

fixed by Roman, reviewed by Miked

cmr=v1.8.2:reviewer=ompi-rm1.8