taskq: refactored out the retry goto

Also added a couple more docs...