>>an easy way to defeat such attacks is to turn off the phone and then not unlock it while it is plugged in.
Agree, thought it might be easier to just plug your own charger into an AC outlet. Has the added bonus that you can use your phone while charging which most people do at airports etc.