DBD::SQLite (not SQLite itself) sets a 30s busy_timeout which we
currently do not override. This means readers can wait up to
30s for a writer to finish. For long imports exceeding 30s,
SQLite readers (for deduplication during import) can die with a
"database is locked" message while the lei/store process holds a
long write transaction open.
Forcing commits every 5s ought to fix the problem in most cases,
assuming commits themselves happen in under 25s (which isn't
always true on slow devices). 5 seconds was chosen since it
matches the default commit interval on ext* filesystems and the
vm.dirty_writeback_centisecs sysctl.
Many (but not all) failures around long-running `lei import'
processes.