Handle C -> Java calls from Rust-spawned threads