Parallelize class file writing.

The method `writeClassToFolderNow` is intended to be safe for multi-threading.
Added some docs to denote which methods do not like threading.