[IR] Added missing computeScopeFlags method to BuildLambdaInstr

* BuildLambdaInstr was missing the method to update scope flags
  which caused incorrect optimization to be applied (eliminated
  binding altogether).

* Fixes #1959.