Once you are filled with the Spirit of God, you wont find the need of many things your flesh desires, sex, money and powr for example.
You are speaking from your flesh point of view, your Spirit wants God, and Jesus was God with Mary and Joseph, walking and talking with them. i dont think sex was one of the things on their minds, thats like saying Jesus masturbated as he too was a man, God but took on the form and nature of a man. Jesus ate food, went to the toilet and was even tempted by Satan. So does this mean Jesus masturbated? As Jesus was not married!
I dont think so....
There are many who live a life of celibacy because they know it pleases God (1Corvii 7-8 and 32-35). And they know masturbation is a sin
(Gen 38:10).
Open Your Eyes
Peace