don't block php session while download is in progress
Merge pull request #7900 from owncloud/close_session_early_on_download_stable5

Close session early on download stable5