Run tests without root

These patches let the tests run as the normal user, by dropping the sockets into `_build`.

It's convenient for me to run, but it does remove the uid/gid switching functionality, so you may not want these patches purely as-is.