TaskAttributeFactory: Use taskConfigCache.masquerade()

Remove the `masquerade(PatchSetArgument)` methods from TaskTree and
Preloader and directly inject a TaskConfigCache in TaskAttributeFactory.

Replace usage of PerThreadCache with assisted injection to ensure
the same instance of TaskConfigCache is used by TaskTree, Preloader, and
TaskAttributeFactory during the lifetime of each TaskAttributeFactory.

Change-Id: I93647b2a9df4cfa383b9e657831613852ea4eced
5 files changed