Add reallocarray(3)

Copied from OpenBSD.