mussel,test: refactor helper_instance_vifs.
mussel,test: fix retry_while.