Tests: Fix RunCMake.CTestMemcheck matching of guard malloc lines

They appear in stderr, not stdout, and '\n' cannot be used to encode
a newline in the expectation file regex syntax.
Merge topic 'test-memcheck-with-RunCMake' into next

947464f3 Tests: Fix RunCMake.CTestMemcheck matching of guard malloc lines