x509: add missing X509 dup functions