I don't understand your points. If a woman doesn't want to be with a man, obviously she'll leave. Whether it be using her own money or taking advantage of government housing or going back to her parents house. What is the issues with that? Do you expect women to stay imprisoned in their marriage?
So what exactly is your point? Even in the West, usually family will get involved and if the wife is done done as
@Leila mentioned family will just tell him to let her go like they even do back home. I've seen enough divorces and if the wife isn't happy, usually the girl's dad and brother will speak to the husband to tell him to let the wife go. Imprisoning a woman in a marriage isn't exactly liked by Somalis, although some unhinged men try and in that situation dad's get involved.
I've never heard of a woman getting a restraining order unless she was abused or the relationship become incredibly toxic. That certainly is not the norm. And if he was a weird abuser then good for her. Marriages should never get to the point that one party has to hide from you. Get a divorce, be civil and the co-parent.