Minor fix in pldmClose() API

The libpldm has introduced new transport APIs for the
open(), send(), close() etc. The present APIs are being deprecated
in libpldm - https://github.com/openbmc/libpldm/blob/main/src/requester/pldm.c#L30
This commit makes use of the close API as openpower-occ-control
causes confusion with the fd resources in HRESET path.
This change is needed until openpower-occ-control makes use of the
new transport APIs in its code.

Tested: Error injection which initiates HRESET was successful.

Change-Id: Ic54b84001407935bee51c51e633e548366c6accc
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
diff --git a/pldm.cpp b/pldm.cpp
index 6a40cdb..3c71eb9 100644
--- a/pldm.cpp
+++ b/pldm.cpp
@@ -678,7 +678,7 @@
         // stop PLDM response timer
         pldmRspTimer.setEnabled(false);
     }
-    close(pldmFd);
+    pldm_close();
     pldmFd = -1;
     eventSource.reset();
 }