[ADD] Core, Locking: Command tests and fixes
[ADD] Core, Locking: Add lock:(read|write) option
[FIX]: Compare namespace URIs for `declare option`, not prefixes
Merge pull request #655 from JensErat/locking

[ADD] Core, Locking: Command tests, fixups and locking XQuery option