Compare the reason, not just the visible particle:
يَا إِبْرَاهِيمُ - already definite because إِبْرَاهِيمُ is a proper name.
يَا وَلَدُ - وَلَدٌ was indefinite, but direct address now points to a particular boy.
Both are vocatives, but only the second illustrates definiteness created through the taught vocative use.