Finally rewrite Thread to use SharedPtr.

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>