[MemProf] Fix MemProf data merge for multiple inputs (#231523)
addMemProfData treated successful frame and call stack insertions as
failures, and returned before merging the rest of an input. This patches
that behaviour.
Added a regression test to verify two inputs are accessible after being
added to the same writer.