Bug 538705: Assure that Bugzilla->dbh doesn't become invalid under MySQL during long jobqueue.pl runs. Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat