Bug/8945 sql concurrency
Made on top of !139 (merged)
Proposed solutions for:
- database schema creation was being run concurrently. On traditional sync we use a lock
- Multiple threads with multiple open sqlite blobs handles writing with FileBodyProducer and yielding randomly
This MR is tightly related to #8945 (closed). Benchmark described there should go without errors if everything is in place.