Ensure that sceIoOpen() fails on directories.

I can't imagine this affects any real software, but just for completeness.
Test is at https://github.com/achurch/pspautotests/commit/9d84ffa69ebc274bc4324d23046fbb17e2a6a011