Move core::task::local_data to core::local_data. #6306

Fix for #6306