app.lua: Fix performance issue on with_restart()
app.lua: Fix performance issue on with_restart()

with_restart has much better JIT behavior now that it takes a method
name instead of a closure to specify the code to run.

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