Fix flaky functional tests by sleeping between operations

This fixes CLDCONNECT-1435.