Update locking code based on origin/main

Pulled most recent updates on unix/socket.c from origin/main, it seems
this issue was already handled by those updates.
42 jobs for !3775 with 1484-threadsanitizer-data-race-in-epoll_ctl in 2 minutes and 41 seconds (queued for 4 seconds)
latest detached
Status Job ID Name Coverage
  Precheck
passed #991196
amd64 linux
🐞:sid:amd64

00:02:40

failed #991195
amd64 linux
misc:sid:amd64

00:02:24

 
  Build
skipped #991207
amd64 linux
asan:sid:amd64
skipped #991208
amd64 linux
clang:stretch:amd64
skipped #991209
i386 linux
clang:stretch:i386
skipped #991197
amd64 linux
docs:sid:amd64
skipped #991206
amd64 linux
gcc:bionic:amd64
skipped #991198
amd64 linux
gcc:centos6:amd64
skipped #991199
amd64 linux
gcc:centos7:amd64
skipped #991204
amd64 linux
gcc:fedora29:amd64
skipped #991200
amd64 linux
gcc:jessie:amd64
skipped #991202
amd64 linux
gcc:sid:amd64
skipped #991203
i386 linux
gcc:sid:i386
skipped #991201
amd64 linux
gcc:stretch:amd64
skipped #991205
amd64 linux
gcc:xenial:amd64
skipped #991211
amd64 linux
nolibtool:sid:amd64
skipped #991210
amd64 linux
pkcs11:sid:amd64
 
  Test
skipped #991230
amd64 linux
system:asan:sid:amd64
skipped #991228
amd64 linux
system:gcc:bionic:amd64
skipped #991212
amd64 linux
system:gcc:centos6:amd64
skipped #991214
amd64 linux
system:gcc:centos7:amd64
skipped #991224
amd64 linux
system:gcc:fedora29:amd64
skipped #991216
amd64 linux
system:gcc:jessie:amd64
skipped #991220
amd64 linux
system:gcc:sid:amd64
skipped #991222
i386 linux
system:gcc:sid:i386
skipped #991218
amd64 linux
system:gcc:stretch:amd64
skipped #991226
amd64 linux
system:gcc:xenial:amd64
skipped #991235
amd64 linux
system:nolibtool:sid:amd64
skipped #991233
amd64 linux
system:pkcs11:sid:amd64
skipped #991231
amd64 linux
unit:asan:sid:amd64
skipped #991232
amd64 linux
unit:clang:stretch:amd64
skipped #991229
amd64 linux
unit:gcc:bionic:amd64
skipped #991213
amd64 linux
unit:gcc:centos6:amd64
skipped #991215
amd64 linux
unit:gcc:centos7:amd64
skipped #991225
amd64 linux
unit:gcc:fedora29:amd64
skipped #991217
amd64 linux
unit:gcc:jessie:amd64
skipped #991221
amd64 linux
unit:gcc:sid:amd64
skipped #991223
i386 linux
unit:gcc:sid:i386
skipped #991219
amd64 linux
unit:gcc:stretch:amd64
skipped #991227
amd64 linux
unit:gcc:xenial:amd64
skipped #991236
amd64 linux
unit:nolibtool:sid:amd64
skipped #991234
amd64 linux
unit:pkcs11:sid:amd64
 
Name Stage Failure
failed
misc:sid:amd64 Precheck
+./win32utils/GeoIP.diff				X	2013,2018,2019,2020
+./win32utils/bind9.sln.in X 2013,2014,2015,2016,2017,2018,2019,2020
+./win32utils/index.html HTML 2006,2007,2008,2012,2013,2014,2015,2016,2018,2019,2020
Uploading artifacts for failed job
Uploading artifacts...
util/newcopyrights: found 1 matching files and directories

checklibs.out: found 1 matching files and directories

Uploading artifacts as "archive" to coordinator... ok
id=991195 responseStatus=201 Created token=Zx5ELhfn
ERROR: Job failed: exit code 1