Remove libc from more tests The goal here is to trim down the number of tests that depend on libc from the sysroot to make https://github.com/rust-lang/rust/pull/123938 more plausible. This PR is a few simple cases that I missed in https://github.com/rust-lang/rust/pull/123943.