posix: device_io: use mode argument correctly in open()

Previously, we had only used the flags field and ignored mode
with the open() function.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
6 files changed