configure: Handle deprecated mallinfo()

We still use it if available or even deprecated.

Closes #40309

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 jobs for ticket40309_035_01 in 22 minutes and 52 seconds (queued for 9 minutes and 47 seconds)