test: Use a test extern in various foreign fn tests
test: Remove a test of the oldsched runtime api
auto merge of #8145 : brson/rust/rttestfixes, r=pcwalton

Two commits here that fix test case dependencies on the old scheduler.