Benjamin Thomas sealed gold in the Track World Cup meet in Glasgow with a dominant performance in the final points race.