Robert Lewandowski became Germany’s record foreign-born goalscorer in firing Bayern Munich to the top of the league.