/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectBaseUtility.h
Utility function to reattach the object external package, if any GetPackage will report the object external package if set after this call
void ReattachExternalPackage()