Fixed deadlock in BlockChain::run (its lambda never released the x_sync)