Closes the key and flushes it to disk if its contents have been modified.
Calling this method on system keys will have no effect, because system keys are never closed.
This method does nothing if you call it on an instance of RegistryKey that is already closed.