bugfix: move mlock to after detach() so it works for child, not parent
[tinc] / src / solaris /
drwxr-xr-x   ..
-rw-r--r-- 4407 device.c