Free up BIO properly when using streaming S/MIME sign.