#1185 with tests
lock domain socket and remove on last arbiter exit
add tests for arbiter unix socket locking
Getting back on that commit due to the #1259.
How it is supposed to work if the socket is not in read mode yet? It seems this is why it return an EBADF error when trying it the first time we are listening on a socket under osx.