A short-lived lock for a long-running evaluation

Adding a defense-in-depth dedup safeguard to a queue-driven system without holding a database connection for the entire evaluation.