tests: Isolate directories in gdbus-peer test
This contains a series of commits to make the gdbus-peer
test more reliable. With these applied, it only fails about 1 in 500 test runs for me, and that’s due to #1318 (closed) (fix available there for those failures).
See the commit messages for reasoning.
Closes #1912 (closed)