Make the recursive delete more robust

The current smb backend uses `OC_Helper::rmdirr` for recursive delete but it sometimes returns empty filename from `scandir` which can cause an infinite loop.

cc @DeepDiver1975 @PVince81