daemon: Try and fix race unreferencing object in machines tests

Trying to fix this race here:

```
**
cockpit-daemon:ERROR:src/daemon/test-machines.c:120:teardown: assertion failed: (tc->machines == NULL)
FAIL: test-machines 3 /machines/append-known-hosts
ERROR: test-machines process failed: 247
```