Don't send a quintillion emails every time mysql restarts.

Before sending an email for a failed update, dump a file to mark the fact that we've sent it.  Check it doesn't exist before continuing.  Stick $x (the revision number) in the lockfile on the off chance it's an actual update failure and we need it to figure out what really went wrong.