Fix precedence bug in lookup of xmlns element attributes for lxml imll.

Use the namespace mapping prefix closest to the current node, not
closest to the root, when inspecting 'xmlns' attributes to determine the
preferred prefix name for a defined namespace.