[NX-19] Add write locking while writing loggers / reconfigure

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>