fix(db): Use pg_advisory_xact_lock (refs #5206)
Merge pull request #1394 from Eric-Brison/3.2-I5273

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