Various fixes for the streamwrapper based SMB backend

Fixes:
- fopen on non existing files
- rename incorrectly reporting an error
- recursive rmdir
- touch to create new files

Now all storage test cases succeed for the SMB backend except for one mtime related test due to timezones not being taken into account.

For #5042 and probably more SMB related issues.

cc @DeepDiver1975