[WIP][POC] Reuse the stream in fopen wrapper

Preserve any lock set on the original stream, don't download/upload the file twice when working with external storages

:construction:  POC/WIP Dont merge :construction: