Fix switch_id to properly drop euid/uid/egid/gid

I spent the day with Theo De Raadt and he pointed out that we incorrectly try to drop uid/gid. I'll attach a patch that fixes this.

[Automatically added by flyspray2trac: Operating System: All]