mussel,test: refactor helper_retry.sh.