Lentils and Rice With Caramelized Onions