tests: Use steady_clock to keep track of timeouts and intervals
The previously used system_clock is affected by changes in the
system clock. This causes issues when such a change occurs while
we are keeping track of a timeout or an elapsed time interval.