libfabric psm: fix (void*) dereference

Committed upstream to libfabric as well.