You can trivially implement threadsafety for scala/scala host via putting compiler into a different isolated from macro expansion thread and communicating with it through message passing.