Flush and disable the output buffer if enabled

In case the output buffer is active (many php installations come with "output_buffering = 4096" in php.ini), it should be flushed and deactivated before sending big files through fpassthru(), otherwise you get memory-limit-errors when downloading big files.
Related Pull Request in OwnCloud: https://github.com/owncloud/core/pull/576