Fix build with curl enabled.

When building with curl enabled the build fails due to the fact that there are some unused variables. This is because the -Werror is also enabled.

Changes:
- Removed unused variable from ResourceHandleManager.
- Added return value in the DNSCurl.
- Moved the WTF_USE_SOUP ifdef to a better place to avoid unused variables warning.