build/meson: check for reallocarray in stdlib.h too

maxice8 requested to merge maxice8/NetworkManager:reallocarray-in-stdlib into master

musl added support for reallocarray, but the function prototype is declared in stdlib.h instead of malloc.h.

Update the check for reallocarray to check both in malloc.h and stdlib.h.

https://man7.org/linux/man-pages/man3/reallocarray.3.html

Merge request reports