Fix build of ssl_pthread_server

With POLARSSL_THREADING_C and
POLARSSL_THREADING_PTHREAD enabled in config.h
we got compile errors.