eal: add error numbers in thread TLS API