Filter image classes in RecordImageClassesVisitor.

We were previously filtering them only in ClinitImageUpdate.
However, for --compiler-filter=assume-verified we take an
early exit from CompilerDriver::PreCompile() and do not
reach that code, so we need to filter in both places.

Test: Manual, extract the dex2oat command for the framework
      extension compilation from build logs and run it with
      --compiler-filter=assume-verified.
Bug: 119868597
Change-Id: If82bc433828fc825cf5792e125a55bbc42cfccbb
1 file changed