Line a medium pot with a thin layer of water. Add onions and cook over med-high heat for 2 minutes. Add garlic, then continue to cook until onions are translucent and all of the water has been absorbed. Add broth, lentils and apple and bring to a boil. Once boiling, cover and reduce heat to medium. Continue to cook until lentils are orange and soft, about 7-10 minutes. Stir in pumpkin and spices. Reduce heat to low and cook another 5 minutes, stirring to incorporate all ingredients. Add salt, pepper and cayenne pepper to taste. Drizzle with pomegranate molasses before serving.