fix(db): Use pg_advisory_xact_lock (fixes #5206)