rt: remove unused 'rust_compare_and_swap_ptr'. Closes #4836
auto merge of #4852 : Caseus/rust/issue-4836, r=brson

Simple removal of rust_compare_and_swap_ptr from rt, as per Issue #4836