Add stat function to memory i/o wrappers

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>