Dumb locks support (R/O and R/W).

All lock-related commands are implemented.

No locks storage.
Merge branch 'locks'

* locks:
  Dumb locks support (R/O and R/W).