keep track of a joiner. POSIX only supports a single joiner, so this simplification is acceptable. At the same time, make sure to mark a joined thread as detached so that its resources can be freed. Reviewed by: deischen PR: 24345
instead of #pragma weak to create weak definitions. Suggested by: bde
descriptors. Approved by: rwatson Obtained from: TrustedBSD Project