pthreadpool: Add test for pthread_create failure