REALLOCARRAY: Import of the OpenBSD's realloc wrapper.
github-issue: #70

Signed-off-by: Shawn Webb <lattera@gmail.com>
(cherry picked from commit a635d5a389110b1279fe63ca99aa991bdb4db7aa)
Signed-off-by: Oliver Pinter <op@hardenedbsd.org>