Mysql: Fixed mysql_upgrade use on WIN32.

Mysqld on WIN32 uses named pipes, so make sure to tell
mysql_upgrade about it.

Fixes [bug 7007] and [bug 7018].
Merge branch 'patches/bug7018' into 5.2

* patches/bug7018:
  Mysql: Fixed mysql_upgrade use on WIN32.