It wasn’t an issue for me as a kid, as Vader had been actively searching for his identity in the Marvel comics, and finally did learn Luke’s name by torturing a captured rebel. Okay, not at all canon, but something similar could have taken place between the movies.
Hah! Great minds…