lnworker.invoices access now uses lock
lnworker.invoices access now uses lock

(qt gui thread vs asyncio thread race)

Traceback (most recent call last):
  File "/home/user/wspace/electrum/electrum/gui/qt/main_window.py", line 1685, in do_send
    self.pay_lightning_invoice(self.payto_e.lightning_invoice)
  File "/home/user/wspace/electrum/electrum/gui/qt/main_window.py", line 1667, in pay_lightning_invoice
    self.invoice_list.update()
  File "/home/user/wspace/electrum/electrum/gui/qt/invoice_list.py", line 73, in update
    _list = self.parent.wallet.get_invoices()
  File "/home/user/wspace/electrum/electrum/wallet.py", line 525, in get_invoices
    out += self.lnworker.get_invoices()
  File "/home/user/wspace/electrum/electrum/util.py", line 401, in
    return lambda *args, **kw_args: do_profile(args, kw_args)
  File "/home/user/wspace/electrum/electrum/util.py", line 397, in do_profile
    o = func(*args, **kw_args)
  File "/home/user/wspace/electrum/electrum/lnworker.py", line 1007, in get_invoices
    for key, (invoice, direction, status) in self.invoices.items():
RuntimeError: dictionary changed size during iteration

vialectrum/vialectrum,vialectrum/vialectrum,spesmilo/electrum,wakiyamap/electrum-mona,spesmilo/electrum,wakiyamap/electrum-mona,pooler/electrum-ltc,pooler/electrum-ltc,wakiyamap/electrum-mona,spesmilo/electrum,pooler/electrum-ltc,wakiyamap/electrum-mona,pooler/electrum-ltc,spesmilo/electrum,vialectrum/vialectrum