[bug] retry on sqlcipher db timeouts for blobs
This just mimics for blobs what is already done in the adbapi backend for the JSON database. It will retry a number of times in case of locked database.
Question: should we retry forever?
Closes: #8981 (closed).