Add target/hosted/unix/thread-pth.c, which is a working thread implementation