You're begging the question that lying is, de facto, a sin. Get rid of that a priori belief, and the problem goes away entirely.
If it's not a sin, and you lie in order to, for example, protect the innocent, such as in the examples I gave, then you are not "doing evil that good may come," you...