Using threding.Lock mechanism to syncronize access to emit method on LogentriesHandler and avoid 'RuntimeError Exception threads can only be started once'