global: clean up openssl_locks on shutdown