Fix to prevent the FRU corruption while updating

While updating the FRU , if we try to read the FRU data
by running command "ipmitool fru list" before 2 seconds after
editing the FRU, getting corrupted data

Tested:

    FRU data not corrupted and updated successfully

Change-Id: I8d2949706378b776888c6768755a57f3727ffb51
Signed-off-by: PavanKumarIntel <pavanx.kumar.martha@intel.com>
diff --git a/src/storagecommands.cpp b/src/storagecommands.cpp
index 2554174..67ca8d8 100644
--- a/src/storagecommands.cpp
+++ b/src/storagecommands.cpp
@@ -309,6 +309,12 @@
         return IPMI_CC_SENSOR_INVALID;
     }
 
+    if (writeTimer->isRunning())
+    {
+        phosphor::logging::log<phosphor::logging::level::ERR>(
+            "Couldn't get raw fru as fru is updating");
+        return ipmi::ccBusy;
+    }
     fruCache.clear();
 
     cacheBus = deviceFind->second.first;