Fixed crash in selftest when multiple PCI devices are available.
Fixed crash in selftest when multiple PCI devices are available.

The selftest executes for each suitable PCI device found. As part of
the test, an instance of the intel NIC is instantiated, which caused
the FFI cdefs to be executed more than once resulting in a crash due
to the attempt to redefine the cdefs.

See
https://github.com/SnabbCo/snabbswitch/issues/34#issuecomment-12409461
for an example of the stack trace.

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