Retry htpdate when it fails
_Originally created by @anonym on [#10494 (Redmine)](https://public-redmine-archive.tails.boum.org/code/issues/10494)_
After tails/tails#9516 our automated test suite has started reporting a lot of
failures of this
kind:
```
./features/step_definitions/common_steps.rb:344:in `/^the time has synced$/'
```
because the amount of Tor bootstrapping issues (that generally happens
right before where the above error may appear) has decreased.
Just like with tails/tails#9516, this is an actual problem with Tails, and not
just a test suite issue. We should add some retrying logic around
`htpdate`, possibly with a `retry_for()`-based shell wrapper. Or we
implement that type of retry-logic (retries + timeouts) in `htpdate`’s
Perl.
Feature Branch: bugfix/10494-retry-curl-in-htpdate
### Subtasks
- [x] tails/tails#11575
### Related issues
- **Related to** tails/tails#11577
- **Related to** tails/sysadmin#11562
- **Blocks** tails/tails#10495
- [x] **Blocked by** tails/tails#11574
issue