This is the wrong approach, solving a superficial symptom of a deeper root cause.
The problem is that housing is a commodity, not that foreign persons are purchasing the commodity. I guarantee you that if he follows through on this we'll see enterprising Canadian "entrepreneurs" buying the homes and creating securities to hide the ownership details and then selling those securities abroad.
If the market exists, wealthy folks will find a way to play in that market.