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