What your proposing leaves you with 100% of the liability. If your friend crashes it you're not only out the bike, but YOU suffer the insurance hit. If someone decides to sue after the accident, it's YOU that's on the hook.
That's if your insurance company doesn't retroactively cancel the policy when they discover what you've been doing, leaving you on the hook for everything liability and cost wise...and then you have all that to deal with PLUS an insurance cancellation on your record for when you return home.
This can go all sorts of wrong and has absolutely zero upside for you. I agree with others, park the bike somewhere for the 2 years. Take the battery out of it, fog the engine, stabilize the gas, plug the exhaust, and if you're really paranoid, mist it with Rust Check or something...and leave it be. Upon return, wash it, install new battery, start engine, ride.