all: vet, fix unreachable errors
fix spurious report of passing a lock (embedded in the struct value) by value
gofmt
Merge pull request #228 from davecheney/123-fix-vet-unreachable-errors

all: vet, fix unreachable errors

Fix a bunch of simple vet errors obscuring some more important ones.