rt: remove unused 'rust_compare_and_swap_ptr'

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