It sounds to me like something is triggering the game to think the ball drained. The flippers turn off when that happens and turn back on when the next ball launches. Maybe a flaky trough switch? Not really sure why you would get random ball locks awarded unless another switch was also registering at the wrong time too. I'm not all that techy so just making some guesses. LTG usually comes along and knows just what to suggest.