fix Thread.join when using Android class library

Android's Thread.join expects the VM to null-out Thread.vmThread when
the thread exits.  Otherwise, it will block forever.
Merge pull request #179 from dicej/android-thread-join

fix Thread.join when using Android class library