Function: GetOwner(spawn)
Description: Returns the original owner of an NPC, including a pet or charmed NPC, using its weak allocation reference. The native lookup retains that actor in the current Lua invocation; a replacement allocation with the same runtime ID or address cannot become the owner. An admitted actor remains readable through retirement within that invocation. Stored userdata remains weak between calls.
Parameters:
spawn(Spawn) - NPC whose owner is requested. Other spawn types are invalid.
Returns: Owner Spawn userdata, or no value (nil when assigned) for invalid input, no owner, retirement or a detached/different-zone relationship.