Indeed, you should follow @timw4mail's advice for any additions to the DB classes.
However, in this particular case - it's better to remove it altogether, it's otherwise pointless to have the *foreign_key_checks* option when creating a backup. Why would you want to use it there if you'll be enforcing it in here? It doesn't make sense.