[LIBC] fix the fopen/open issue in armlibc