I wouldn't recommend it, but I don't think it's a terrible thing to lie about if the consequences of telling the truth are highly aversive. Some things really ought testified to, even if there are averse consequences. I'm not sure that race is one of those things. And actually, sometimes people don't deserve the truth, or even telling the truth will lead away from the greater good. For instance, when the gestapo came to the house of a family that was hiding Jews, the vast majority of them lied. Most of us recognize that that was actually the preferable choice.