Draft: Fixes for sync
In looking for a reason for random issues with blocking hivemind two fixes were made:
- correctly stop syncing when sync was started with a block num limit
- run Payouts and Mentions refresh in threads on separated pg connections
The main problem is still investigated but the fixes above can be merged now