MODE-2243 Fixed various WebDAV issues: XML encoding of custom property values, not returning reserved/non-used namespaces in the response & erroneous locking logic in DoPut.

The PR should be cherry-pickable across branches.
Immutable is nice-to-have (to protect against dev screwups), but having a set will make comparisons a tad faster.