docs: Fix autodoc generation problem for deposit module
autodoc tries to import discovered modules independently from their runtime use.
As swh/deposit/settings holds multiple runtime settings (including production), this wrongly tries to load the production one.
This fixes the global html documentation generation.
Related T1182
Migrated from D447 (view on Phabricator)