Include fix from upstream for MDEV-17200. musl-1.1.20 segfaults when pthread_detach() is called for already detached threads. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>