Add lockfile when regenerating the blockchain.
Incremental update of blockchain DB.