Avoid capability test race

The test waits for ring convergence, then fetches capabilities and
checks the values. But there is a delay before capabilities are updated,
which only gets worse with 1.4. Changing test to retry capabilities
until they eventually change to the expected value.