Add `WriteLock`/`ReadLock` function which writes/read `Lock` instace to/from the `Object` instance. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
LOCK
Add `TypeLock` value to `Type` enum. Implement `Lock` type compatible with corresponding message. Implement `ObjectLocked` and `IrregularObjectLock` errors in `apistatus` package. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>