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.
Wouldn't this be better as an immutable `Set<String>`?