Atomic loads and writes for thread safety

Removed Logger.prefix because the "log"  package has its own RWMutex