Raise specific exception class on query timeouts
So that swh-storage clients can reliably detect if a query errored from a timeout rather than a generic error, and act accordingly (return HTTP 504 and/or a friendly error in swh-web, not report to Sentry, notify Statsd, ...)
TODO: test it in docker or something; I only ran the tests