Lincecum walks 7 in Giants' win over Dodgers