Using threding.Lock mechanism to syncronize access to emit method on Log...

...entriesHandler and avoid 'RuntimeError Exception threads can only be started once'