Harboring has a bug that I've already figured out and fixed internally but was related to some touching of pathfinding that I did in this update. It'll be in the bugfix release that'll come out soonish probably.
I have iffy feelings on the masturbation status effect in general. Like you said it is quite brutal to get caught by it in the wrong situation. A part of me thinks it should be nerfed but:
A) I can't think of a good way to do so that matches the flavor (since if anything a character that has fallen into masturbation would only become more and more likely to continue doing so)
B) I think the game is currently too easy
I could see a change to Chastity being something like "Lust due to masturbation is capped at X" although maybe that's more denial than chastity at that point. Dunno.