fundingmanager: hold lock during loop
fundingmanager: hold lock during loop

As a follow-up to #4560 we actually need to hold the reservation mutex
during the full loop where we count the pending reservations. Otherwise
the results might become inaccurate for concurrent funding flows.

aakselrod/lnd,LightningNetwork/lnd,aakselrod/lnd,LightningNetwork/lnd