[Sanitizer] make internal_open have the same interface as libc version