Sort out codegen-related target labels.

The codegen target itself (e.g., JavaThriftLibrary) has the
label 'codegen'.

The injected target (e.g., JavaLibrary) created at codegen time
has the label 'synthetic'.

Don't confuse the two.