On Lie algebras satisfying the Engel condition