GROOVY-5874: Closure shared variables are not rechecked in LHS of binary expressions
    * partial fix since there were two issues in one
    * test case for GROOVY-5893