Silence "unused variable" warnings
Fixes #4649: Move r31809 to v1.8 branch (HCOLL: register memory release hook)

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

r31809 [[BR]]
HCOLL: register memory release hook to avoid races

fixed by Devender, reviewed by Miked

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