Add diameter_reg:wait/1
Add diameter_reg:wait/1

Mostly to use it in the watchdog test suite that's been broken by
sequence masks. Do a bit of cleanup while we're at it.

emacsmirror/erlang,weisslj/otp,schlagert/otp,jinshana/otp,potatosalad/otp,haguenau/otp,sdebnath/otp,GinjaNinja32/otp,release-project/otp,krishnakumar4a4/otp,stolen/otp,enikki/otp,gjaldon/otp,aboroska/otp,sammoth-wazoku/otp,rlipscombe/otp,cobusc/otp,vladdu/otp,palas/otp,lucafavatella/otp,weisslj/otp,electricimp/otp,marquisthunder/otp,hairyhum/otp,RJ/otp,beni55/otp,jinshana/otp,psyeugenic/otp,Teino1978-Corp/otp,RoadRunnr/otp,bjorng/otp,jamesruan/otp,bernardd/otp,paulcager/otp,matwey/otp,bugs-erlang-org/otp,lianghaivv/otp,benoitc/otp-1,Teino1978-Corp/erlang-otp,lightcyphers/otp,erlang/otp,cobusc/otp,entropiae/otp,erlang/otp,Teino1978-Corp/otp,benoitc/otp-1,platinumthinker/otp,theom/otp,VincentHHL/otp,RoadRunnr/otp,jemsbhai/otp,riverrun/otp,bernardd/otp,jj1bdx/otp,bugs-erlang-org/otp,lrascao/otp,Teino1978-Corp/otp,haguenau/otp,lantti/otp,ahmedshafeeq/otp,g-andrade/otp,rlipscombe/otp,palas/otp,tuncer/otp,Teino1978-Corp/erlang-otp,tuncer/otp,paladim/otp,electricimp/otp,riverrun/otp,dumbbell/otp,electricimp/otp,uabboli/otp,uabboli/otp,emile/otp,release-project/otp,gjaldon/otp,isvilen/otp,matwey/otp,lucafavatella/otp,saleyn/otp,ahmedshafeeq/otp,fenollp/otp,lemenkov/otp,platinumthinker/otp,release-project/otp,platinumthinker/otp,matwey/otp,mikpe/otp,NOMORECOFFEE/otp,potatosalad/otp,mikpe/otp,ferd/otp,awetzel/otp,getong/otp,awetzel/otp,paladim/otp,klarna/otp,awetzel/otp,jemsbhai/otp,schlagert/otp,ahmedshafeeq/otp,dumbbell/otp,gjaldon/otp,palas/otp,lemenkov/otp,mujiatong/otp,kvakvs/otp,c-rack/otp,saleyn/otp,klarna/otp,emacsmirror/erlang,VincentHHL/otp,RoadRunnr/otp,GinjaNinja32/otp,uabboli/otp,falkevik/otp,derek121/otp,cnbin/otp,legoscia/otp,enikki/otp,jinshana/otp,emacsmirror/erlang,kvakvs/otp,falkevik/otp,fenollp/otp,yangchengjian/otp,tuncer/otp,NOMORECOFFEE/otp,vinoski/otp,psyeugenic/otp,platinumthinker/otp,c-rack/otp,awetzel/otp,johanclaesson/otp,lhslll/otp,lucafavatella/otp,sitexa/otp,schlagert/otp,sammoth-wazoku/otp,emacsmirror/erlang,bugs-erlang-org/otp,g-andrade/otp,theom/otp,goertzenator/otp,emacsmirror/erlang,paladim/otp,awetzel/otp,mikpe/otp,benoitc/otp-1,RichMorin/otp,krishnakumar4a4/otp,RGafiyatullin/otp,lhslll/otp,klarna/otp,legoscia/otp,electricimp/otp,palas/otp,aboroska/otp,emile/otp,stolen/otp,dumbbell/otp,NOMORECOFFEE/otp,GinjaNinja32/otp,lightcyphers/otp,erlang/otp,vladdu/otp,psyeugenic/otp,VincentHHL/otp,dgud/otp,paladim/otp,dgud/otp,vinoski/otp,vladdu/otp,platinumthinker/otp,haguenau/otp,falkevik/otp,sdebnath/otp,lantti/otp,lianghaivv/otp,stolen/otp,benoitc/otp-1,legoscia/otp,RoadRunnr/otp,vladdu/otp,RaimoNiskanen/otp,jj1bdx/otp,theom/otp,jj1bdx/otp,saleyn/otp,johanclaesson/otp,cobusc/otp,schlagert/otp,mikpe/otp,lantti/otp,emacsmirror/erlang,vinoski/otp,basho/otp,RJ/otp,RaimoNiskanen/otp,erlang/otp,awetzel/otp,Teino1978-Corp/erlang-otp,falkevik/otp,vic/otp,basho/otp,jamesruan/otp,emile/otp,falkevik/otp,paulcager/otp,NOMORECOFFEE/otp,jinshana/otp,getong/otp,ader1990/otp,vladdu/otp,riverrun/otp,ferd/otp,getong/otp,legoscia/otp,dgud/otp,enikki/otp,electricimp/otp,entropiae/otp,gjaldon/otp,paladim/otp,theom/otp,aboroska/otp,erlang/otp,rlipscombe/otp,rlipscombe/otp,theom/otp,johanclaesson/otp,matwey/otp,emacsmirror/erlang,uabboli/otp,msantos/otp,entropiae/otp,aboroska/otp,basho/otp,krishnakumar4a4/otp,ferd/otp,lemenkov/otp,uabboli/otp,release-project/otp,riverrun/otp,lantti/otp,potatosalad/otp,potatosalad/otp,lemenkov/otp,msantos/otp,haguenau/otp,rlipscombe/otp,gjaldon/otp,stolen/otp,jemsbhai/otp,bernardd/otp,sitexa/otp,ahmedshafeeq/otp,jj1bdx/otp,jamesruan/otp,vic/otp,dumbbell/otp,sdebnath/otp,RoadRunnr/otp,VincentHHL/otp,lucafavatella/otp,isvilen/otp,dumbbell/otp,cnbin/otp,jemsbhai/otp,isvilen/otp,uabboli/otp,goertzenator/otp,rlipscombe/otp,derek121/otp,lightcyphers/otp,cobusc/otp,paladim/otp,RGafiyatullin/otp,lianghaivv/otp,RGafiyatullin/otp,ferd/otp,lightcyphers/otp,weisslj/otp,rlipscombe/otp,lhslll/otp,benoitc/otp-1,entropiae/otp,electricimp/otp,entropiae/otp,derek121/otp,RichMorin/otp,bsmr-erlang/otp,dgud/otp,bjorng/otp,g-andrade/otp,neeraj9/otp,lrascao/otp,aboroska/otp,jinshana/otp,getong/otp,RoadRunnr/otp,ferd/otp,marquisthunder/otp,potatosalad/otp,haguenau/otp,aboroska/otp,cnbin/otp,enikki/otp,g-andrade/otp,RichMorin/otp,legoscia/otp,cnbin/otp,basho/otp,basho/otp,kvakvs/otp,massemanet/otp,stolen/otp,mikpe/otp,krishnakumar4a4/otp,bsmr-erlang/otp,getong/otp,falkevik/otp,Teino1978-Corp/erlang-otp,bernardd/otp,bsmr-erlang/otp,platinumthinker/otp,ahmedshafeeq/otp,VincentHHL/otp,mikpe/otp,lrascao/otp,lhslll/otp,falkevik/otp,lucafavatella/otp,getong/otp,mujiatong/otp,RaimoNiskanen/otp,RichMorin/otp,stolen/otp,weisslj/otp,krishnakumar4a4/otp,vic/otp,paulcager/otp,lrascao/otp,ader1990/otp,haguenau/otp,basho/otp,matwey/otp,dumbbell/otp,weisslj/otp,schlagert/otp,RoadRunnr/otp,lhslll/otp,saleyn/otp,dgud/otp,GinjaNinja32/otp,paulcager/otp,cnbin/otp,riverrun/otp,bjorng/otp,dgud/otp,vladdu/otp,lrascao/otp,vic/otp,emile/otp,emile/otp,psyeugenic/otp,RichMorin/otp,erlang/otp,g-andrade/otp,cobusc/otp,erlang/otp,NOMORECOFFEE/otp,benoitc/otp-1,lianghaivv/otp,emacsmirror/erlang,vladdu/otp,haguenau/otp,g-andrade/otp,uabboli/otp,isvilen/otp,bjorng/otp,mikpe/otp,lhslll/otp,VincentHHL/otp,aboroska/otp,riverrun/otp,bjorng/otp,vinoski/otp,erlang/otp,entropiae/otp,kvakvs/otp,emile/otp,beni55/otp,lantti/otp,fenollp/otp,dumbbell/otp,fenollp/otp,johanclaesson/otp,NOMORECOFFEE/otp,Teino1978-Corp/otp,RGafiyatullin/otp,c-rack/otp,RichMorin/otp,mujiatong/otp,benoitc/otp-1,beni55/otp,electricimp/otp,platinumthinker/otp,isvilen/otp,enikki/otp,ahmedshafeeq/otp,RJ/otp,sitexa/otp,legoscia/otp,ahmedshafeeq/otp,vinoski/otp,neeraj9/otp,jj1bdx/otp,ahmedshafeeq/otp,goertzenator/otp,mikpe/otp,RJ/otp,fenollp/otp,cnbin/otp,palas/otp,basho/otp,Teino1978-Corp/erlang-otp,RGafiyatullin/otp,bsmr-erlang/otp,RichMorin/otp,schlagert/otp,lantti/otp,isvilen/otp,lemenkov/otp,schlagert/otp,goertzenator/otp,psyeugenic/otp,isvilen/otp,marquisthunder/otp,vladdu/otp,kvakvs/otp,yangchengjian/otp,NOMORECOFFEE/otp,emacsmirror/erlang,lantti/otp,legoscia/otp,msantos/otp,marquisthunder/otp,isvilen/otp,psyeugenic/otp,jemsbhai/otp,potatosalad/otp,g-andrade/otp,lianghaivv/otp,getong/otp,palas/otp,legoscia/otp,sdebnath/otp,bernardd/otp,ader1990/otp,sdebnath/otp,uabboli/otp,hairyhum/otp,saleyn/otp,bsmr-erlang/otp,tuncer/otp,mikpe/otp,jj1bdx/otp,msantos/otp,VincentHHL/otp,stolen/otp,massemanet/otp,paulcager/otp,mujiatong/otp,jinshana/otp,massemanet/otp,ferd/otp,aboroska/otp,derek121/otp,lightcyphers/otp,saleyn/otp,jamesruan/otp,msantos/otp,RaimoNiskanen/otp,johanclaesson/otp,krishnakumar4a4/otp,goertzenator/otp,theom/otp,jemsbhai/otp,matwey/otp,GinjaNinja32/otp,bjorng/otp,paulcager/otp,tuncer/otp,lemenkov/otp,lrascao/otp,RGafiyatullin/otp,mikpe/otp,lantti/otp,yangchengjian/otp,legoscia/otp,GinjaNinja32/otp,ader1990/otp,msantos/otp,VincentHHL/otp,klarna/otp,fenollp/otp,neeraj9/otp,goertzenator/otp,kvakvs/otp,release-project/otp,gjaldon/otp,massemanet/otp,riverrun/otp,getong/otp,goertzenator/otp,enikki/otp,awetzel/otp,bugs-erlang-org/otp,johanclaesson/otp,lhslll/otp,johanclaesson/otp,sammoth-wazoku/otp,sitexa/otp,hairyhum/otp,Teino1978-Corp/otp,gjaldon/otp,theom/otp,matwey/otp,RJ/otp,lemenkov/otp,vic/otp,dumbbell/otp,g-andrade/otp,marquisthunder/otp,kvakvs/otp,yangchengjian/otp,jj1bdx/otp,vinoski/otp,Teino1978-Corp/erlang-otp,awetzel/otp,entropiae/otp,RichMorin/otp,riverrun/otp,tuncer/otp,krishnakumar4a4/otp,bsmr-erlang/otp,dumbbell/otp,dumbbell/otp,lemenkov/otp,sitexa/otp,yangchengjian/otp,neeraj9/otp,lianghaivv/otp,falkevik/otp,matwey/otp,bjorng/otp,dgud/otp,erlang/otp,fenollp/otp,hairyhum/otp,bsmr-erlang/otp,c-rack/otp,dgud/otp,klarna/otp,RoadRunnr/otp,vic/otp,derek121/otp,paulcager/otp,enikki/otp,yangchengjian/otp,sammoth-wazoku/otp,erlang/otp,massemanet/otp,beni55/otp,NOMORECOFFEE/otp,marquisthunder/otp,jamesruan/otp,vladdu/otp,saleyn/otp,cnbin/otp,electricimp/otp,psyeugenic/otp,lianghaivv/otp,krishnakumar4a4/otp,jj1bdx/otp,Teino1978-Corp/erlang-otp,lightcyphers/otp,vinoski/otp,sdebnath/otp,bernardd/otp,bugs-erlang-org/otp,ader1990/otp,neeraj9/otp,lucafavatella/otp,release-project/otp,derek121/otp,klarna/otp,msantos/otp,isvilen/otp,mujiatong/otp,basho/otp,palas/otp,bugs-erlang-org/otp,cnbin/otp,emile/otp,Teino1978-Corp/otp,beni55/otp,beni55/otp,lrascao/otp,ferd/otp,dgud/otp,RaimoNiskanen/otp,getong/otp,RGafiyatullin/otp,tuncer/otp,sitexa/otp,c-rack/otp,weisslj/otp,bernardd/otp,Teino1978-Corp/otp,fenollp/otp,RJ/otp,bugs-erlang-org/otp,massemanet/otp,dgud/otp,lrascao/otp,mujiatong/otp,sammoth-wazoku/otp,klarna/otp,Teino1978-Corp/otp,paladim/otp,cobusc/otp,RaimoNiskanen/otp,potatosalad/otp,lhslll/otp,neeraj9/otp,platinumthinker/otp,ader1990/otp,neeraj9/otp,beni55/otp,fenollp/otp,bjorng/otp,kvakvs/otp,electricimp/otp,emacsmirror/erlang,bjorng/otp,GinjaNinja32/otp,cobusc/otp,release-project/otp,ader1990/otp,cobusc/otp,sdebnath/otp,hairyhum/otp,mujiatong/otp,vinoski/otp,saleyn/otp,derek121/otp,jinshana/otp,paulcager/otp,lucafavatella/otp,bjorng/otp,jj1bdx/otp,hairyhum/otp,haguenau/otp,vic/otp,jemsbhai/otp,RaimoNiskanen/otp,lightcyphers/otp,marquisthunder/otp,release-project/otp,GinjaNinja32/otp,emile/otp,getong/otp,RGafiyatullin/otp,uabboli/otp,RJ/otp,psyeugenic/otp,jemsbhai/otp,rlipscombe/otp,theom/otp,bernardd/otp,goertzenator/otp,vinoski/otp,potatosalad/otp,klarna/otp,lianghaivv/otp,ferd/otp,tuncer/otp,vic/otp,potatosalad/otp,g-andrade/otp,jamesruan/otp,saleyn/otp,stolen/otp,RaimoNiskanen/otp,gjaldon/otp,release-project/otp,matwey/otp,emile/otp,bernardd/otp,lrascao/otp,aboroska/otp,isvilen/otp,hairyhum/otp,sammoth-wazoku/otp,johanclaesson/otp,Teino1978-Corp/erlang-otp,schlagert/otp,neeraj9/otp,massemanet/otp,falkevik/otp,potatosalad/otp,msantos/otp,c-rack/otp,palas/otp,hairyhum/otp,bugs-erlang-org/otp,entropiae/otp,benoitc/otp-1,yangchengjian/otp,kvakvs/otp,sammoth-wazoku/otp,c-rack/otp,jamesruan/otp,bsmr-erlang/otp,massemanet/otp,paladim/otp,marquisthunder/otp,sdebnath/otp,ahmedshafeeq/otp,sitexa/otp,derek121/otp,c-rack/otp,weisslj/otp,g-andrade/otp,RaimoNiskanen/otp,tuncer/otp,sitexa/otp,bsmr-erlang/otp,ader1990/otp,sammoth-wazoku/otp,rlipscombe/otp,beni55/otp,RoadRunnr/otp,ferd/otp,massemanet/otp,basho/otp,weisslj/otp,lightcyphers/otp,jamesruan/otp,lucafavatella/otp,jinshana/otp,rlipscombe/otp,RJ/otp,weisslj/otp,enikki/otp,vinoski/otp,mujiatong/otp,jj1bdx/otp,yangchengjian/otp,goertzenator/otp