openssl: export the locking function when building without OpenSSL This got lost duing the move and it lets the users call this function just in case.