Only toggle foreign key checks if foreign key checks are enabled