fix rpass core-run-destroy for android
auto merge of #10336 : ksh8281/rust/fix_rpass_core-run-destroy_for_android, r=yichoi

fix rpass core-run-destroy for android