ix small regression caused by the nologin patch (#161956)
- fix race in getpeername error checking (mindrot #1054)