Fix race condition when block is found and share record is not yet at the DB

I'm not sure sleep is a good solution for that, but it works.
Without it, I'm having an issue where on high load (> 500mh/s) some blocks aren't going into database.