eal: fix return codes on thread naming failure