magit-insert-child-count: massive speed-up

Previously we used `looking-back' to check whether a section's heading
ended with ":" indicating that a child count should be inserted.  That
had a devastating effect on performance.  We now use `char-before'.
And generally avoid all unnecessary work.