ClosureTree / with_advisory_lock Ruby 702 72 Advisory locking for ActiveRecord advisory-locks ruby mysql mutexes