Correct Permissions for socket.

Fixes easybib/issues#312