Workaround jemalloc printing warnings to stderr with qemu
Summary:
Recent versions of jemalloc will print a warning upon startup when
running via qemu due to the lack of a compliant MADV_DONTNEED
implementation.
This is handled properly but this warning is causing the test framework
to fail. Rather than filtering out stderr, we can avoid this message by
assigning the extern malloc_message function pointer to our own function
(see https://jemalloc.net/jemalloc.3.html).
Test Plan:
./contrib/teamcity/build-configurations.py build-linux-aarch64
Rebase on D14042 and check it still works.
Reviewers: #bitcoin_abc, PiRK
Reviewed By: #bitcoin_abc, PiRK
Differential Revision: https://reviews.bitcoinabc.org/D14048