[PATCH 3/6] regedit/tests: Replace RegCloseKey() with the helper function close_key()