test: Fix race in p2p_segwit
test: Fix race in p2p_segwit

Co-Authored-By: Suhas Daftuar <30d28247f9e7f99f0622548cc85bd2972a765cef@gmail.com>

pstratem/bitcoin,pstratem/bitcoin,bitcoin/bitcoin,n1bor/bitcoin,cdecker/bitcoin,fujicoin/fujicoin,apoelstra/bitcoin,kallewoof/bitcoin,Xekyo/bitcoin,mruddy/bitcoin,ahmedbodi/vertcoin,alecalve/bitcoin,tecnovert/particl-core,jnewbery/bitcoin,bitcoin/bitcoin,sstone/bitcoin,jambolo/bitcoin,ajtowns/bitcoin,andreaskern/bitcoin,rnicoll/bitcoin,namecoin/namecoin-core,andreaskern/bitcoin,instagibbs/bitcoin,jlopp/statoshi,ajtowns/bitcoin,litecoin-project/litecoin,bitcoinknots/bitcoin,fanquake/bitcoin,achow101/bitcoin,ahmedbodi/vertcoin,ahmedbodi/vertcoin,practicalswift/bitcoin,AkioNak/bitcoin,alecalve/bitcoin,Xekyo/bitcoin,vertcoin/vertcoin,sipsorcery/bitcoin,alecalve/bitcoin,jambolo/bitcoin,mm-s/bitcoin,cdecker/bitcoin,mm-s/bitcoin,monacoinproject/monacoin,mruddy/bitcoin,dscotese/bitcoin,lateminer/bitcoin,n1bor/bitcoin,instagibbs/bitcoin,pataquets/namecoin-core,fanquake/bitcoin,andreaskern/bitcoin,prusnak/bitcoin,sstone/bitcoin,DigitalPandacoin/pandacoin,peercoin/peercoin,ElementsProject/elements,Xekyo/bitcoin,namecoin/namecoin-core,yenliangl/bitcoin,DigitalPandacoin/pandacoin,namecoin/namecore,mruddy/bitcoin,jlopp/statoshi,bitcoin/bitcoin,particl/particl-core,rnicoll/bitcoin,ElementsProject/elements,pstratem/bitcoin,monacoinproject/monacoin,litecoin-project/litecoin,prusnak/bitcoin,vertcoin/vertcoin,yenliangl/bitcoin,jamesob/bitcoin,cdecker/bitcoin,peercoin/peercoin,fanquake/bitcoin,jamesob/bitcoin,jambolo/bitcoin,mm-s/bitcoin,jamesob/bitcoin,practicalswift/bitcoin,vertcoin/vertcoin,rnicoll/dogecoin,jnewbery/bitcoin,prusnak/bitcoin,bitcoin/bitcoin,bitcoinsSG/bitcoin,fujicoin/fujicoin,MeshCollider/bitcoin,litecoin-project/litecoin,MeshCollider/bitcoin,Sjors/bitcoin,qtumproject/qtum,sipsorcery/bitcoin,namecoin/namecoin-core,GroestlCoin/GroestlCoin,rnicoll/dogecoin,yenliangl/bitcoin,lateminer/bitcoin,AkioNak/bitcoin,rnicoll/bitcoin,yenliangl/bitcoin,lateminer/bitcoin,jnewbery/bitcoin,practicalswift/bitcoin,MarcoFalke/bitcoin,Xekyo/bitcoin,GroestlCoin/bitcoin,qtumproject/qtum,litecoin-project/litecoin,AkioNak/bitcoin,jlopp/statoshi,domob1812/bitcoin,GroestlCoin/GroestlCoin,vertcoin/vertcoin,namecoin/namecore,namecoin/namecoin-core,pstratem/bitcoin,practicalswift/bitcoin,apoelstra/bitcoin,GroestlCoin/GroestlCoin,sipsorcery/bitcoin,namecoin/namecore,Sjors/bitcoin,dscotese/bitcoin,instagibbs/bitcoin,yenliangl/bitcoin,JeremyRubin/bitcoin,EthanHeilman/bitcoin,rnicoll/dogecoin,JeremyRubin/bitcoin,monacoinproject/monacoin,ajtowns/bitcoin,DigitalPandacoin/pandacoin,n1bor/bitcoin,pataquets/namecoin-core,cdecker/bitcoin,jonasschnelli/bitcoin,kallewoof/bitcoin,tecnovert/particl-core,mm-s/bitcoin,DigitalPandacoin/pandacoin,sstone/bitcoin,lateminer/bitcoin,peercoin/peercoin,domob1812/namecore,achow101/bitcoin,lateminer/bitcoin,GroestlCoin/bitcoin,namecoin/namecore,rnicoll/dogecoin,namecoin/namecoin-core,mruddy/bitcoin,bitcoin/bitcoin,qtumproject/qtum,pataquets/namecoin-core,ahmedbodi/vertcoin,bitcoinknots/bitcoin,pataquets/namecoin-core,GroestlCoin/GroestlCoin,fanquake/bitcoin,n1bor/bitcoin,andreaskern/bitcoin,MeshCollider/bitcoin,GroestlCoin/GroestlCoin,midnightmagic/bitcoin,bitcoinknots/bitcoin,sipsorcery/bitcoin,dscotese/bitcoin,pstratem/bitcoin,domob1812/namecore,prusnak/bitcoin,qtumproject/qtum,anditto/bitcoin,EthanHeilman/bitcoin,mm-s/bitcoin,JeremyRubin/bitcoin,practicalswift/bitcoin,instagibbs/bitcoin,MarcoFalke/bitcoin,apoelstra/bitcoin,ElementsProject/elements,practicalswift/bitcoin,cdecker/bitcoin,bitcoinsSG/bitcoin,MarcoFalke/bitcoin,particl/particl-core,cdecker/bitcoin,rnicoll/bitcoin,midnightmagic/bitcoin,monacoinproject/monacoin,JeremyRubin/bitcoin,qtumproject/qtum,domob1812/bitcoin,GroestlCoin/bitcoin,domob1812/namecore,apoelstra/bitcoin,jambolo/bitcoin,fanquake/bitcoin,fanquake/bitcoin,kallewoof/bitcoin,bitcoinsSG/bitcoin,kallewoof/bitcoin,andreaskern/bitcoin,GroestlCoin/bitcoin,jamesob/bitcoin,fujicoin/fujicoin,dscotese/bitcoin,Sjors/bitcoin,particl/particl-core,domob1812/namecore,AkioNak/bitcoin,domob1812/bitcoin,anditto/bitcoin,jlopp/statoshi,vertcoin/vertcoin,JeremyRubin/bitcoin,apoelstra/bitcoin,EthanHeilman/bitcoin,GroestlCoin/bitcoin,achow101/bitcoin,qtumproject/qtum,MeshCollider/bitcoin,yenliangl/bitcoin,JeremyRubin/bitcoin,pataquets/namecoin-core,peercoin/peercoin,bitcoinsSG/bitcoin,midnightmagic/bitcoin,kallewoof/bitcoin,bitcoinsSG/bitcoin,EthanHeilman/bitcoin,n1bor/bitcoin,pstratem/bitcoin,midnightmagic/bitcoin,monacoinproject/monacoin,litecoin-project/litecoin,namecoin/namecoin-core,mruddy/bitcoin,kallewoof/bitcoin,dscotese/bitcoin,mm-s/bitcoin,achow101/bitcoin,GroestlCoin/GroestlCoin,sipsorcery/bitcoin,monacoinproject/monacoin,bitcoinknots/bitcoin,peercoin/peercoin,Xekyo/bitcoin,instagibbs/bitcoin,achow101/bitcoin,dscotese/bitcoin,prusnak/bitcoin,jonasschnelli/bitcoin,MeshCollider/bitcoin,MeshCollider/bitcoin,particl/particl-core,Sjors/bitcoin,vertcoin/vertcoin,MarcoFalke/bitcoin,anditto/bitcoin,domob1812/bitcoin,tecnovert/particl-core,particl/particl-core,n1bor/bitcoin,ajtowns/bitcoin,AkioNak/bitcoin,qtumproject/qtum,bitcoinsSG/bitcoin,alecalve/bitcoin,midnightmagic/bitcoin,GroestlCoin/bitcoin,alecalve/bitcoin,namecoin/namecore,jamesob/bitcoin,fujicoin/fujicoin,anditto/bitcoin,ahmedbodi/vertcoin,ElementsProject/elements,tecnovert/particl-core,ElementsProject/elements,jlopp/statoshi,jonasschnelli/bitcoin,midnightmagic/bitcoin,peercoin/peercoin,jambolo/bitcoin,jonasschnelli/bitcoin,lateminer/bitcoin,Sjors/bitcoin,sstone/bitcoin,bitcoin/bitcoin,rnicoll/bitcoin,DigitalPandacoin/pandacoin,sstone/bitcoin,tecnovert/particl-core,andreaskern/bitcoin,EthanHeilman/bitcoin,domob1812/namecore,instagibbs/bitcoin,ElementsProject/elements,rnicoll/bitcoin,bitcoinknots/bitcoin,anditto/bitcoin,ajtowns/bitcoin,namecoin/namecore,rnicoll/dogecoin,jlopp/statoshi,MarcoFalke/bitcoin,alecalve/bitcoin,fujicoin/fujicoin,jambolo/bitcoin,sstone/bitcoin,DigitalPandacoin/pandacoin,prusnak/bitcoin,domob1812/namecore,ahmedbodi/vertcoin,jamesob/bitcoin,litecoin-project/litecoin,AkioNak/bitcoin,fujicoin/fujicoin,ajtowns/bitcoin,jonasschnelli/bitcoin,Xekyo/bitcoin,sipsorcery/bitcoin,domob1812/bitcoin,tecnovert/particl-core,jnewbery/bitcoin,particl/particl-core,MarcoFalke/bitcoin,anditto/bitcoin,jnewbery/bitcoin,achow101/bitcoin,pataquets/namecoin-core,EthanHeilman/bitcoin,apoelstra/bitcoin,domob1812/bitcoin,mruddy/bitcoin