[ClassLoader] Make XcacheClassLoader and ApcClassLoader consistent