batch of golangci-lint fixes in `atproto/*` (#1031)
This isn't everything, just a first pass. There were some real issues
with errors not getting wired through.
I'm kind of ambivalent about the pattern:
```go
defer func() {
_ = resp.Body.Close()
}()
```
but do want to make any non-defer error returns explicit.