I think you'll find the S in SLOC stands for Source, not Software. Development software will typically extend over more lines due to readability for future revisions.
In the final "software", the term "Line" doesn't really have much meaning.
To get up to 24 million lines you'd have to count a lot of off board code as well as the internal aircraft systems.