Fixing NativeMethodAccessorImpl.invoke0.

If we don't set the thread to ASYNC_WAIT, the native method thinks that it completed synchronously.