Lock python in ILogTarget python subclasses.