Registry was parented to WaylandModule, but the ConnectionThread got
destroyed in the dtor, thus before the Registry resulting in a crash
when the Registry got destroyed.
This change addresses this problem by tracking the Registry and
destroying it before destroying the Connection.
BUG: 387479
FIXED-IN: 5.12.1