kleaf: Centralize attributes needed for using --cache_dir. For all rule()'s that uses cache_dir, rule.attrs should use cache_dir.attrs instead of declaring them individually. Test: TH Bug: 266956564 Change-Id: Iaf527ebfeb0ff90eefb0b459008294ae16f91bc0