Fix issue 1841 Closure detection fails in nested functions

If an escaping function doesn't use any closure variables, but
calls another nested function which does, it must be marked as
needing a closure. This 'calling a sibling' case was missing.
Merge pull request #1554 from donc/closure1841

1841 Closure detection fails in nested functions