[Sanitizer] extend internal libc with stat/fstat/lstat functions