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