cpp/thread/jthread/~jthread

Destroys the object.

If has an associated thread, calls request_stop and then join.