[HatoholThreadBase] Add a missing g_error_free().