Fix accessing freed memory in X509CertificateStore::Update()