networktest: fix race condition
networktest: fix race condition

AndrewSamokhvalov/lnd,ddustin/lnd,aakselrod/lnd,AndrewSamokhvalov/lnd,LightningNetwork/lnd,ddustin/lnd,aakselrod/lnd,LightningNetwork/lnd