Don't eliminate temporary variable when between its usage and its definition there's assignment to a non-local variable. Fix KT-17540