Ninja: Simplify code for linker commands

Use GetCreateRuleVariable function instead of redundant code for Rule
variable name.  Use temporary variables to improve code.
Merge topic 'simplify-ninja-linker-command' into next

2b896752 Ninja: Simplify code for linker commands