Recursive mkdir fixes #7047

Updated version of https://github.com/owncloud/core/pull/7048

unit tests and fixes for other storage backends will follow (#7324)

cc @DeepDiver1975 @PVince81