Ironically the bible says it's better to cut your hands off then to masturbate...I'm catholic and honestly think that's a bit extreme.
But anyways back on subject. I honestly don't know what I would do in a situation like that. I still have trouble just picturing myself married to someone let alone in a situation like that. So my vote goes to maybe.