eal: introduce thread init helper