s4-dsdb: simplify linked attributes code using GUID functions