Cleanup received_new_header calculation to use WITH_LOCK
Cleanup received_new_header calculation to use WITH_LOCK

particl/particl-core,bitcoinsSG/bitcoin,namecoin/namecore,fanquake/bitcoin,jamesob/bitcoin,jambolo/bitcoin,sipsorcery/bitcoin,jamesob/bitcoin,instagibbs/bitcoin,ajtowns/bitcoin,particl/particl-core,kallewoof/bitcoin,ajtowns/bitcoin,Xekyo/bitcoin,mruddy/bitcoin,fujicoin/fujicoin,Xekyo/bitcoin,particl/particl-core,instagibbs/bitcoin,lateminer/bitcoin,namecoin/namecoin-core,fanquake/bitcoin,bitcoin/bitcoin,bitcoin/bitcoin,jambolo/bitcoin,instagibbs/bitcoin,sstone/bitcoin,fanquake/bitcoin,sipsorcery/bitcoin,AkioNak/bitcoin,instagibbs/bitcoin,sstone/bitcoin,kallewoof/bitcoin,domob1812/bitcoin,tecnovert/particl-core,tecnovert/particl-core,bitcoinsSG/bitcoin,tecnovert/particl-core,ajtowns/bitcoin,mruddy/bitcoin,mruddy/bitcoin,sipsorcery/bitcoin,sipsorcery/bitcoin,Xekyo/bitcoin,fujicoin/fujicoin,namecoin/namecoin-core,namecoin/namecore,jambolo/bitcoin,lateminer/bitcoin,bitcoinsSG/bitcoin,lateminer/bitcoin,jambolo/bitcoin,fujicoin/fujicoin,bitcoin/bitcoin,bitcoinsSG/bitcoin,Xekyo/bitcoin,kallewoof/bitcoin,bitcoinsSG/bitcoin,namecoin/namecoin-core,namecoin/namecore,mruddy/bitcoin,namecoin/namecore,lateminer/bitcoin,fujicoin/fujicoin,ajtowns/bitcoin,sstone/bitcoin,particl/particl-core,tecnovert/particl-core,namecoin/namecoin-core,AkioNak/bitcoin,kallewoof/bitcoin,instagibbs/bitcoin,fujicoin/fujicoin,AkioNak/bitcoin,namecoin/namecoin-core,namecoin/namecore,instagibbs/bitcoin,fanquake/bitcoin,bitcoin/bitcoin,jambolo/bitcoin,jamesob/bitcoin,domob1812/bitcoin,jamesob/bitcoin,ajtowns/bitcoin,sstone/bitcoin,namecoin/namecoin-core,kallewoof/bitcoin,fanquake/bitcoin,sipsorcery/bitcoin,bitcoinsSG/bitcoin,sstone/bitcoin,domob1812/bitcoin,AkioNak/bitcoin,domob1812/bitcoin,AkioNak/bitcoin,bitcoin/bitcoin,lateminer/bitcoin,fanquake/bitcoin,bitcoin/bitcoin,sipsorcery/bitcoin,sstone/bitcoin,jamesob/bitcoin,particl/particl-core,jamesob/bitcoin,AkioNak/bitcoin,jambolo/bitcoin,fujicoin/fujicoin,namecoin/namecore,ajtowns/bitcoin,domob1812/bitcoin,tecnovert/particl-core,mruddy/bitcoin,lateminer/bitcoin,tecnovert/particl-core,particl/particl-core,domob1812/bitcoin,mruddy/bitcoin,Xekyo/bitcoin,Xekyo/bitcoin,kallewoof/bitcoin