eal: fix use-after-free on control thread creation