make metalogger multithreading compatible