Adds a "FLUSH TABLES" command at the end so that the new master has a non-empty gtid_binlog_pos after the operation.