fix: scanner: Increase time getting measurements

- Increase the time waiting for the last measurements queued, to avoid
  canceling unfinished measurements and gc maybe not releasing thread
  variables
- Use the already declared global pool instead of passing it by args
- Log more information when the last measuremetns timeout

Closes: #40087
10 jobs for 40089-include-tor-0-4-6-x-in-the-tests in 49 minutes and 22 seconds (queued for 36 seconds)
latest
Status Name Job ID Coverage
  Test
passed python310 #22488

00:13:18

passed python36 #22481

00:16:08

passed python37tor035 #22482

00:12:32

passed python37tor045 #22483

00:12:44

passed python37tormaster #22484

00:14:46

passed python37torstable #22485

00:12:21

passed python38 #22486

00:07:06

passed python39 #22487

00:14:56

 
  Deploy
passed pages #22489

00:00:57

passed pages:deploy

00:00:00