Fix an infinite loop in ClassLoader.isAncestorOf()

The current version loops endlessly if the callers ClassLoader
is not the same as the system ClassLoader. The cause for this is
a loop variable that is not changed during the loop.

BUG=1732214
1 file changed