It has nothing to do with that. This is part of the Secret War.
That's merely the ostensible reason. The real reasons go much deeper. Canceling scholarships and student visas to ALL KSA students in Canada? Expelling an ambassador? Halting trade deals? That's not over a feminist in prison.