Use thread-aware psycopg2 connection pooling for database access
Summary: This allows to use swh.storage with a modicum of concurrency
Test Plan: clearly, make test should still pass
Reviewers: Reviewers!
Differential Revision: https://forge.softwareheritage.org/D325