AsuraThreadBase: make sure to wait a child thread at destructor.

When I run tests without this fix, test_exitCallback crashes on my
environment.