Draft: Resolve "Improve expired leases reclamation query for PostgreSQL"

Closes #2037

Merge request reports