Add retry for setting MySQL password

MySQL init script returns before service
is ready to handle commands, causing a
race condition.

Change-Id: I45527325e84049f0366e637416edfceb5bf8f759
Closes-Bug: #1322231
(cherry picked from commit 3d67b9e8e1b29d33715ae5921887fe66566a36d8)