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