This should be fixed as a generic MySQL thing that applies to all build scripts, there should be no way we're ever backing up the database of an application that is not in offline (or readonly, if Drupal) mode, because of the risk of locking and the fact we're backing up volatile data.