[PATCH v1 33/34] qemuDomainNamespaceTeardownRNG: Deduplicate code