4d014e15b4
Someone reported a bug if pthread_detach is called while a pthread_join is already in progress, but I'm unable to reproduce it. Keep the tests I wrote, though. Change-Id: I3d71450bbbb5345f2cb213dc56310ec020d528cc