eal: fix mem alloc from control thread if socket 0 is unused