remember original fopen access type in pre-proxy because sometimes they change
during the fopen call, e.g. 'r' becomes 'r+' if we open an URL
Merge pull request #7454 from owncloud/enc_remember_fopen_mode

[enc] remember original fopen access type in pre-proxy