[libsocialcache] Automatically time out stuck image download requests

This commit adds a default timeout to network requests in the image
downloader, to ensure that stuck requests cannot cause processes
which are waiting on the results to hang.