Run the URL check in a separate thread, so we can impose a timeout on
the entire checking process.