Fixes for quota stream fseek

- Fixed quota stream fseek to work with SEEK_END and provide a return value
- The quota stream now doesn't wrap files opened in read-only mode
- Fixes #5524

Please review @icewind1991 @DeepDiver1975 @schiesbn