Core/SkillHandler: Check if player is using proper NPC on talent reset

"Once allocation has been finalized, you cannot retract that point unless you go to your class trainer and ask to relearn your talents." - WoWWiki

TC only checks if the GUID belongs to a trainer type creature, it doesn't have to match the player's class and it doesn't even have to be a class trainer. (e.g. profession)