more robust waiting for blocks to process in daemon tests