pausing with condition variables - fixes #4