Relax Railties pessimistic locking to support Rails 4