Homosexuality is not defined by actions. Science differentiates between homosexuality and homosexual acts. That's because there's a difference between doing something and having a desire to do it. If in the scenario you just described a man or woman continues to have attractions to the same sex, then they are by definition homosexual. It works both ways too. Heterosexual people can engage in homosexual acts, but still have a heterosexual orientation.