Add dbus match rule to detect motherboard object creation

In some rare cases, it is observed that the smbios table is
received by smbiosmdr daemon way before Entity Manager creates
the motherboard object path. When that happens, smbios daemon
creates dbus objects for the cpus but fails to associate them with
the chassis. This causes missing "Processors" and "Memory" sections
under "Links" in the chassis response.

The issue can be easily reproduced by rebooting just the BMC without
rebooting the host node.

The fix is to setup a dbus matcher when the motherboard path
is not found. The matcher shall look for the event when
xyz.openbmc_project.Inventory.Item.System interface is added
to the dbus object.

Tested:

Tried rebooting the bmc multiple times and verified
that post reboot, the "Processors" and "Memory" sections
are visible under "Links" section in the Chassis response

```
{
  "@odata.id": "/redfish/v1/Chassis/<Chassis Name>",
  "@odata.type": "#Chassis.v1_17_0.Chassis",
  "Actions": {
    "#Chassis.Reset": {
      "@Redfish.ActionInfo": "/redfish/v1/Chassis/<Chassis Name>/ResetActionInfo",
      "target": "/redfish/v1/Chassis/<Chassis Name>/Actions/Chassis.Reset"
    }
  },
  "Assembly": {
    "@odata.id": "/redfish/v1/Chassis/<Chassis Name>/Assembly"
  },
  "ChassisType": ".....",
  "Id": "<Chassis Name>",
  "Links": {
    "Cables": [
      {
         ....
      }
    ],
    "Cables@odata.count": ..,
    "ComputerSystems": [
      {
        "@odata.id": "/redfish/v1/Systems/system"
      }
    ],
    "Contains": [
      .......
    ],
    "Contains@odata.count": ..,
    "ManagedBy": [
      {
        "@odata.id": "/redfish/v1/Managers/bmc"
      }
    ],
    "Processors": [ <<==== Processor section is present
      {
        "@odata.id": "/redfish/v1/Systems/system/Processors/cpu0"
      },
      {
        "@odata.id": "/redfish/v1/Systems/system/Processors/cpu1"
      },
      {
        "@odata.id": "/redfish/v1/Systems/system/Processors/cpu2"
      },
      .....
    ],
    "Processors@odata.count": ..
  },
  "LogServices": {
    "@odata.id": "/redfish/v1/Chassis/<Chassis Name>/LogServices"
  },
  "Manufacturer": ".....",
  "Memory": { <<==== Memory section is present
    "@odata.id": "/redfish/v1/Systems/system/Memory"
  },
  "Model": ".....",
  "Name": "<Chassis Name>",
  "PCIeDevices": {
    "@odata.id": "/redfish/v1/Systems/system/PCIeDevices"
  },
  "PartNumber": ".....",
  "Power": {
    "@odata.id": "/redfish/v1/Chassis/<Chassis Name>/Power"
  },
  "PowerState": "On",
  "PowerSubsystem": {
    "@odata.id": "/redfish/v1/Chassis/<Chassis Name>/PowerSubsystem"
  },
  "Sensors": {
    "@odata.id": "/redfish/v1/Chassis/<Chassis Name>/Sensors"
  },
  "SerialNumber": ".....",
  "Status": {
    "Health": "OK",
    "HealthRollup": "OK",
    "State": "Enabled"
  },
  "Thermal": {
    "@odata.id": "/redfish/v1/Chassis/<Chassis Name>/Thermal"
  },
  "ThermalSubsystem": {
    "@odata.id": "/redfish/v1/Chassis/<Chassis Name>/ThermalSubsystem"
  }
}
```

Change-Id: I58b514c9e845d64770fa6f946493222a011a2018
Signed-off-by: Nikhil Namjoshi <nikhilnamjoshi@google.com>
1 file changed