Change: Resource leak in CopyAndUploadContentUrisTask

Input and output streams have been closed per URI iteration using try-with-resources to prevent file descriptor and memory leaks when copying multiple content URIs.

https://github.com/owncloud/android/issues/4797
https://github.com/owncloud/android/pull/4806
