refactor: make llGetLinkName() and llGetLinkKey() use a common GetLinkEntity() method