fix failing integration tests due to enabling optimistic locking on loans