Updated RegSetKeySecurity patch to work with special root keys.