I think that counts as a microaggression, in that it's a papercut to someone that builds up over time that a member of the majority culture would not experience (you wouldn't ask a John Smith if they're related to some other Smith). Isn't that what microaggressions are? Something that by itself is innocuous, but when it's the 20th time in a week you're asked the question, it starts being annoying.