if pthread_create() returns EAGAIN then do
not always retry, it makes an infinite loop.