perf(frontends/lean/elaborator): improve performance of pi_abstract_context

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
perf(frontends/lean/elaborator): improve performance of pi_abstract_context