Move core::task::local_data to core::local_data
A test file is fixed
auto merge of #6329 : sonwow/rust/issue-6306, r=ILyoan

Fix for #6306