caos.backends.pgsql: Fix store_links()
caos.backends.pgsql: Fix store_links()

This fixes a regression from Commit 41668e49 ('caos: Track link changes at the session level')

edgedb/edgedb,edgedb/edgedb,edgedb/edgedb