MAINT: remove some inf-related warnings from logsumexp

see https://github.com/scipy/scipy/issues/4014
looks like a use case for `_lazywhere`:
```
tmp = sum(tmp, ...)
out = _lazywhere(tmp != 0, (tmp,), np.log, -np.inf)
```