There is no way to protect yourself from getting the plane impounded.
Similarly, no way to protect yourself from somebody (who you lent/rented your plane to) doing something in e.g. France and getting it confiscated by the Customs or some other agency over there.
Another reason why planes rented/leased to flying schools tend to be old wrecks that the owner isn't too concerned about.