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.

Fixes #173.