restore invoke_addr to its previous value after running method called from native code.