tracker-miner-fs: Handle corruption on startup
Improve the handling of database corruption situations:
- Bail out and exit uncleanly early if corruption is found during database updates
- On next restart, either let the Tracker SPARQL library repair the database, or switch it to start from scratch
This should avoid broken databases without user interaction.
Closes: #324 (closed)