DummyBlockchain: Fix possible deadlock