Process Locking on OS X

On Windows *and OS X*, use `socket.AF_INET` instead of `socket.AF_UNIT`.

Closes #529.