delete all children's previews when deleting a folder

supersedes https://github.com/owncloud/core/pull/10634

please review @LukasReschke @DeepDiver1975 
Sorry to be the annoying one on this PR: But with this approach `$children` will be executed n-times, we should just calculate it ones :-)