workingtitle integrated for xvcb
Separated code for locking and threads
According to man CRYPTO_set_locking_callback that was simply wrong.
*global-lock* served two purposes

lock the ressource *threads* and *thread-counter*
and lock the initialization

separated those concerns

the ressource *threads* and *thread-counter* is only used in
threadid-callback so no need for a recursive lock here.
Unused constants removed. Commented code removed.
locks-and-threads added to package
cleaned initialization of locks and threads, changed *locks* into a vector

if the number of elements is known in advance and doesn't changes
in the runtime, using a list seemed inadequate to me
lost package
corrected threadid-callback / crypto-set-id

at least on my system man CRYPTO_THREAD_set_callback tells me,
that CRYPTO_set_id_callback is deprecated.

openssl version 1.0.1e-1 here
libssl3 is only mentioned together with NSS on google

so libss3 has nothing to do with openssl and this looked
like bullshit to me