Race fixes for gdbus-connection unit tests

Merged Philip Withnall requested to merge pwithnall/glib:480-gdbus-connection-test into master

See the commit messages.

Closes #480 (closed)

Merge request reports