package.loader: Flush and clear regularly internal proxy storage states
To avoid the internal states of proxy storages to grow out of proportions. swh-storage!924 (closed) and this diff should be enough to replace !379 (closed) altogether.
Related to T2352
Test Plan
tox
Migrated from D3014 (view on Phabricator)