The purpose of lime is to add a little bit of acid to prevent browning, and add flavor. Lemon juice adds acidity, and some tart flavor, though a little different than lime. It works in a pinch! Lime is not required to make guacamole - though it will spoil faster without the extra acidity.