Issue 1045

* set _native_pid correctly in daemon mode (this fixes a bug that leads to all unix sockets being created as `/tmp/riot.tty.0. I could split this into a separate PR, but we can merge this quickly I hope.)
* set optional path with unix socket option
* fix coding style