Add @threadSafe annotation to mojos.