rails / 4.2 / activerecord / locking