host_monitor_app: Restrict the criteria of adding S0/S5 checkpoints

Only the 2 cases below will be considered to add S0/S5 checkpoints.

- S0: `Off`->`Running`
- S5: `Running`->`Off`

Tested:
```
boot-time-monitor[259]: [powerMatcher] CurrentHostState has changed from xyz.openbmc_project.State.Host.HostState.Running to xyz.openbmc_project.State.Host.HostState.Off
...
boot-time-monitor[259]: [powerMatcher] CurrentHostState has changed from xyz.openbmc_project.State.Host.HostState.Off to xyz.openbmc_project.State.Host.HostState.Running
```

Google-Bug-Id: 296787899
Google-Bug-Id: 296791279
Change-Id: I1542a85b1671008a4970c9e0e80af7d70aaceeed
Signed-off-by: Michael Shen <gpgpgp@google.com>
1 file changed