The _lwp_detach() function marks the LWP specified
by target_lwp as being a detached LWP. The effect
is the same as if target_lwp had been created using
the LWP_DETACHED flag (see _lwp_create(2)).
The target_lwp must be a non-detached LWP within
the same process as the calling LWP.