Mode 2035 - Fixed the mode:lock node type

In addition, this exposed another problem: `XmlNameEncoder` did not correctly validate the start characters of XML elements, according to: http://www.w3.org/TR/xml/#NT-NameStartChar.

This should only be merged after https://github.com/ModeShape/modeshape/pull/937