polarssl_threadlock.c #1