Fix openssl locks