Atomic loads and writes for thread safety

I removed Logger.prefix because the "log" package has its own RWMutex. And loglevel.priorityName doesn't need a lock because it is only read from, not modified.