Deal with OpenSSL constification
Drop unused akid_name variable
CRYPTO_thread_id is deprecated

We actually don't need it, it is always equal to the pid, since
Postfix is not multi-threaded.

Similarly, use ERR_remove_thread_state() instead of deprecated
ERR_remove_state().
Reduce #ifdef clutter in tls_dane.c