chmod socket file atomically with its creation

Signed-off-by: Mattias Andrée <maandree@operamail.com>