Make {RSA,DSA,DH}_new_method obtain and release an ENGINE