No, it would not count as a sanctioned game. In bowling, "sanctioned" means competition conducted under the rules of the American Bowling Congress or the Women's International Bowling Congress.
Those rules require the foul-line lights and buzzers to be in working order during play. Since a malfunctioning foul-line system violates that requirement, a 300 game bowled under those conditions would not be recognized as sanctioned.