Release the buffer in all error cases and add small code cleanups.
Remove a warning on p.
And correctly handle the reference count from OBJ_NEW in the error
path (thanks Gilles for noticing).
OSHMEM: fix - use real mkey for atomics for rc/dc

fixed by Roman, reviewed by Vasily

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