[th/gdbus-cleanup] two minor cleanup patches for gdbusconnection.c
Left over patches from !2018 (closed).
There is no deeper reason behind these patches, except I was looking at the code and thought maybe we can refactor some unnecessary/duplicate code.