impl lock_optimisticaly on books