Fix thread safety issue in padrino logger