Fix EZP-23390: IOService loads whole file to get mime type

Does not affect Legacy using DFS as it sets it from meta data, however all other handlers are affected.

Todo:
- [ ] Get legacy patch merged and change composer.json to reflect that before merging this