fix(frontends/lean/parser): fix deadlock in macro parser

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
fix(frontends/lean/parser): fix deadlock in macro parser