monitor: Changes for power off errors

When a fan error causes a power off due to a power off action being
triggered, the previous fan error is reposted at the time of the power
off.  For this error, make the following changes that will differentiate
it from the first time it was logged:

1. Change severity to Critical
2. Set POWER_THERMAL_CRITICAL_FAULT=TRUE in the additional data
3. Set SEVERITY_DETAIL=SYSTEM_TERM in the additional data

Certain implementations, such as the IBM one, will take additional
actions based on these changes.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I5f36171e58493130114427f9e9fd870cd0d2dd76
diff --git a/monitor/system.cpp b/monitor/system.cpp
index ea042cc..a6af9bf 100644
--- a/monitor/system.cpp
+++ b/monitor/system.cpp
@@ -300,7 +300,7 @@
 
         // Still use the latest sensor data
         auto sensorData = captureSensorData();
-        _lastError->commit(sensorData);
+        _lastError->commit(sensorData, true);
     }
 }