If a part on one of the U.S. military’s growing fleet of 250 F-35s fails, it takes about six months for the depots to repair it—twice the program’s objective, a key government watchdog has found.