Fixed race condition

It could happen that `queue_operation()` was called before
`run()` was executed. Hence the `self.running` wasn't yet
set to true. With setting it to true right before starting
the thread this can't happen anymore.