add open_memstream from system/core/cutils/open_memstream.c

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>