Concurrent access result in ERROR:aiosqlite:returning exception database is locked
To reproduce: spawn multiple swhfs instances using the same cache.
It is probably due to the code change when switching to aiosqlite, and missing context managers to commit to the database.
Migrated from T2725 (view on Phabricator)