Beem: Race condition in blockchain.blocks() when using threads