[HatoholThreadBase] Set PrivateContext::thread to NULL when the thread exits.