Fix #1690: Identify define_method scopes to catch nonlocal returns

* The old check was walking past all closure scopes which meant
  it was walking past method bodies defined via define_method.