thread_local/scoped.rs: actually do some tests for #20262