[PATCH 4/6] server: Create thread context object in stop_thread.