librustc: Refactor middle::trans::inline
Fix trans of calls to foreign fns

It was failing occasionally.