device: fix matching parent device by connection UUID
We must compare the UUID with the one on the parent device.
Also, simplify the checks to only return TRUE at the end of function.
https://bugzilla.redhat.com/show_bug.cgi?id=1716438
Fixes: 27c281ac ('device: deduplicate match_parent()')