Fix disabling paused threaded operations

- If a threaded operation was disabled while being paused, its execution
  thread wasn't stopped. As a consequence, the state of the operation did
  not change to "Running" when it was restarted.