PtlMDRelease() was called if read_msg() returned a failure code. This commit moves the PtlMDRelease() inside read_msg() so that it doesn't get called in cases where the failure happens before or at the PtlMDBind().