[LIBC] fix the open mode when using fopen in arm libc.