Fix crash on exit caused by QNetworkDiskCache double free.

QNetworkAccessManager takes ownership of the pointer passed to setCache
function. We can't store it in a global QSharedPointer bacause this will
lead to a dobule delete memory corruption on shutdown.