s3: Properly clean up in pthreadpool_init in case of failure