Test decoding and encoding functions for locks and lists of locks of
the new format. Also, test that when the object is being locked with
the same lock, its expiration epoch is set if it wasn't set before.
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>