locks: Fix restore from v1.2 images

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>