Fix race in unix socket code when closing a socket that has already sent a recv/send event. See merge request !1915pulled from v9_11 by script. hash: ab1e4b57