fix validate-loop-locals for instance-call, minor performance improvement