Annotate all org.gradle.model.* implementation classes with @ThreadSafe and @NotThreadSafe

+review REVIEW-5242