Fix build with curl enabled.

Removed unused variable from ResourceHandleManager.
Added return value in the DNSCurl.
Moved the WTF_USE_SOUP ifdef to a better place.

Reviewed by: Hugo Parente Lima