configure: Handle deprecated mallinfo()

We still use it if available or even deprecated.

Closes #40309

Signed-off-by: David Goulet <dgoulet@torproject.org>
8 jobs for ticket40309_044_01 in 18 minutes and 50 seconds (queued for 26 minutes and 43 seconds)