Add cgo thread spawn test