evp: address a use after free state when using HMAC and MD copy.