[ARCH-183] add optimistic lock to updatable entities