create_epoll_thread minor fix, would not clear the correct thread id on pthread_create error