Elasticsearch JS: retry on timeout

Elasticsearch.js 8.14.0 changes how request timeouts are handled.