Send uid rather than username when authenticating via EXTERN

This helps in docker where the /etc/passwd on the container side
may not match the host one, so verification will fail. There is
no advantage of giving the username here anyway, its just less
efficient.
Fix imports in transport_darwin.go