Prevent duplicate rebroadcast_pending() loops
Fix a bug where the blockchain allowed itself to be interrupted in the middle of pushing a block, leaving the blockchain in an inconsistent state.