Lock thread_safe, update kaminari