OSHMEM: optimize print to spend less of formatting when not needed

fixed by Roman, reviewed by Miked
cmr=v1.8.2:reviewer=ompi-rm1.8
OSHMEM: add missing prototypes and remove unused functions

fixed by Roman, reviewed by MikeD

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