librustc: Forbid access to cross-crate private static methods

r? @catamorphism