nix-daemon: Get peer credentials on Mac OS X

This makes allowed-users and trusted-users work on Mac OS X.