Convert threads, jca and ejb3 to use transformer builder.

These were all done as one commit since they all rely on changes in threads