ENABLE_THREAD_SAFETY guarding seems incomplete

Seems to me as if the guarding by `ENABLE_THREAD_SAFETY` is meant for the initialization code as well.
See e.g. the `openssl_init_mutex` variable which is not even getting defined unless ENABLE_THREAD_SAFETY is defined.