phosphor-host-ipmid: Add support for settable bit in FULL SDR

There is a bit in SDR types 01h and 02h which indicate that a sensor is settable (Supports the "Set Sensor Reading And Event Status" command). Since OpenBMC has some sensors which support this command (eg. fan pwm sensor), the bit should also be set accordingly.

The bit in question is Settable Sensor and can be found:
IPMI Spec v2.0 rev 1.1:

Section 43.1 SDR Type 01h, Full Sensor Record
Table 43 - SDR Type 01h, byte 11, bit 7

Tested from the host side that the FULL SDR for sensors which are settable
shows up as settable.

Change-Id: I5bd140e035a5a96b977dbbbf4acaae0369e832d2
Tested: Yes
Signed-off-by: Jaghathiswari Rankappagounder Natarajan <jaghu@google.com>
diff --git a/sensorhandler.cpp b/sensorhandler.cpp
index 8a0d23c..40c0d3e 100644
--- a/sensorhandler.cpp
+++ b/sensorhandler.cpp
@@ -827,6 +827,11 @@
         record.body.sensor_type = sensor->second.sensorType;
         record.body.event_reading_type = sensor->second.sensorReadingType;
         record.body.entity_instance = sensor->second.instance;
+        if (ipmi::sensor::Mutability::Write ==
+            (sensor->second.mutability & ipmi::sensor::Mutability::Write))
+        {
+            get_sdr::body::init_settable_state(true, &(record.body));
+        }
 
         // Set the type-specific details given the DBus interface
         ret = populate_record_from_dbus(&(record.body), &(sensor->second),