set thread id using the new callback API of openssl