[PATCH v1] kobject: make sure parent is not released before children