remove some oldmap::Hashmap from librustc

Switch some std::oldmap::HashMap to core::hashmap::linear::LinearMap.
related to #4986