move locals back into inner scope
move locals back into inner scope

There is no visible performance benefit from keeping them in
module global scope.

andywingo/snabbswitch,javierguerragiraldez/snabbswitch,dpino/snabbswitch,Igalia/snabb,xdel/snabbswitch,eugeneia/snabb,alexandergall/snabbswitch,lukego/snabb,heryii/snabb,snabbnfv-goodies/snabbswitch,kellabyte/snabbswitch,javierguerragiraldez/snabbswitch,xdel/snabbswitch,plajjan/snabbswitch,pavel-odintsov/snabbswitch,dpino/snabb,alexandergall/snabbswitch,snabbnfv-goodies/snabbswitch,mixflowtech/logsensor,Igalia/snabbswitch,fhanik/snabbswitch,eugeneia/snabb,pirate/snabbswitch,lukego/snabb,heryii/snabb,xdel/snabbswitch,fhanik/snabbswitch,kbara/snabb,snabbco/snabb,kellabyte/snabbswitch,dpino/snabb,dwdm/snabbswitch,eugeneia/snabbswitch,fhanik/snabbswitch,dpino/snabbswitch,aperezdc/snabbswitch,lukego/snabb,Igalia/snabbswitch,Igalia/snabbswitch,virtualopensystems/snabbswitch,andywingo/snabbswitch,lukego/snabbswitch,Igalia/snabb,heryii/snabb,hb9cwp/snabbswitch,pavel-odintsov/snabbswitch,plajjan/snabbswitch,andywingo/snabbswitch,snabbnfv-goodies/snabbswitch,SnabbCo/snabbswitch,SnabbCo/snabbswitch,wingo/snabb,aperezdc/snabbswitch,justincormack/snabbswitch,wingo/snabb,Igalia/snabbswitch,pirate/snabbswitch,Igalia/snabb,wingo/snabb,mixflowtech/logsensor,eugeneia/snabbswitch,eugeneia/snabb,eugeneia/snabb,dpino/snabb,virtualopensystems/snabbswitch,heryii/snabb,lukego/snabb,andywingo/snabbswitch,SnabbCo/snabbswitch,hb9cwp/snabbswitch,eugeneia/snabb,wingo/snabbswitch,alexandergall/snabbswitch,lukego/snabbswitch,aperezdc/snabbswitch,alexandergall/snabbswitch,eugeneia/snabbswitch,snabbco/snabb,pirate/snabbswitch,justincormack/snabbswitch,dpino/snabbswitch,Igalia/snabb,kbara/snabb,snabbco/snabb,Igalia/snabb,snabbco/snabb,snabbco/snabb,dpino/snabbswitch,virtualopensystems/snabbswitch,kbara/snabb,justincormack/snabbswitch,kellabyte/snabbswitch,heryii/snabb,wingo/snabb,hb9cwp/snabbswitch,wingo/snabb,lukego/snabbswitch,mixflowtech/logsensor,justincormack/snabbswitch,kbara/snabb,kbara/snabb,dpino/snabb,kbara/snabb,dpino/snabb,dwdm/snabbswitch,hb9cwp/snabbswitch,Igalia/snabbswitch,eugeneia/snabb,dwdm/snabbswitch,heryii/snabb,snabbco/snabb,wingo/snabbswitch,alexandergall/snabbswitch,pavel-odintsov/snabbswitch,Igalia/snabb,wingo/snabb,eugeneia/snabbswitch,dpino/snabb,lukego/snabbswitch,snabbco/snabb,Igalia/snabb,wingo/snabbswitch,eugeneia/snabb,javierguerragiraldez/snabbswitch,snabbnfv-goodies/snabbswitch,snabbco/snabb,eugeneia/snabb,plajjan/snabbswitch,wingo/snabbswitch,plajjan/snabbswitch,Igalia/snabb,alexandergall/snabbswitch,SnabbCo/snabbswitch,aperezdc/snabbswitch,mixflowtech/logsensor,mixflowtech/logsensor,dpino/snabb,alexandergall/snabbswitch,alexandergall/snabbswitch