Ultimately the US taxpayers will eat the loss in either case. If the government tried to charge it back to Lockheed Martin they'd just raise the price on subsequent programs to compensate.
The government does insure weapons of war. Who would write the policy?