Fix deadlock when handling bad calls to `batch_funding.._generated`