Support HTTP timeout detection in curl backend

We already do this for the pure-PHP backend, and it's easy to
catch this single error and pass a more specific message

Change-Id: Id25e89beaada428aff2c65094a5c5713c138c97b